GitHub user huaiyun opened a pull request:
https://github.com/apache/thrift/pull/1028
MOD: fix the blocked bug when call Stop() twice or more
When Stop() is called twice or more, and no new connection accepted from
AcceptLoop(), the Stop() will be blocked because the quit channel is full.
Use a flag to ensure the Stop() executed only once, and no block.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/huaiyun/thrift master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/thrift/pull/1028.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1028
----
commit 24d16aaaf20c97a944d22551a8a5215d830546c0
Author: ZhiyuYin <[email protected]>
Date: 2016-06-16T09:28:42Z
MOD: fix the blocked bug when call the Stop() twice or more
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---