GitHub user szenker opened a pull request:
https://github.com/apache/thrift/pull/752
Thrift 3496: C++: Cob style client fails when sending a consecutive request
see THRIFT-3496
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/szenker/thrift THRIFT-3496
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/thrift/pull/752.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 #752
----
commit 430fec6afc9647ccd2dadfef3bc99f1b5ba39485
Author: Sebastian Zenker <[email protected]>
Date: 2015-12-18T15:15:08Z
fixed: sending a second request via Cob style client wasn't working as the
otrans_ buffer still contained the content from the first request
commit 656d7ad24b0984dbc959b7130c97e1d128a400bb
Author: Sebastian Zenker <[email protected]>
Date: 2015-12-18T15:21:12Z
fixed: TEvhttpClientChannel - when sending a second request (via
sendAndRecvMessage()) before the first cob of the first request has signaled
that a response is available, the cob of the first request gets overwritten by
the second request. Consequently, the cob of the first request never gets
called and cob of the second gets called twice.
commit b9a65d539adeecbd09a88138272922c8df490e7b
Author: Sebastian Zenker <[email protected]>
Date: 2015-12-21T11:16:23Z
extended the cpp TestClient to issue consecutive calls on the same client
----
---
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.
---