← 输入框|github.com|刷新
Skip to content

Another fix for #358: async thr wait in basic_client_facade dtor - #405

Merged
deanberris merged 2 commits into
cpp-netlib:0.11-develfrom
leecoder:0.11-devel
Jun 25, 2014
Merged

deanberris merged 2 commits into
cpp-netlib:0.11-develfrom
leecoder:0.11-devel

Conversation

@leecoder

Copy link
Copy Markdown

Sometimes, it has crashed in my tc after #402.

*** glibc detected *** ./TestHttp: double free or corruption (out): 0x00007fe760001f70 ***

It's maybe a race condition.
So, I've rewritten by async thr wait in basic_client_facade dtor.
It perfectly works as following http_temp_client_get_test.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need to be virtual?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, it's not needed in this case. It's just my habit. I'll remove it.

@deanberris

Copy link
Copy Markdown
Member

LGTM -- thanks @leecoder, I'm merging now.

deanberris added a commit that referenced this pull request Jun 25, 2014
Another fix for #358: async thr wait in basic_client_facade dtor
@deanberris
deanberris merged commit 770858b into cpp-netlib:0.11-devel Jun 25, 2014
leecoder pushed a commit to leecoder/cpp-netlib that referenced this pull request Apr 14, 2015
Another fix for cpp-netlib#358: async thr wait in basic_client_facade dtor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants