You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By saying "send responses out of order", do you mean sending responses to a client using a SINGLE connection and issuing multiple async requests one after another? or a client using multiple connections?
Thanks for quick reply. How does client know which request is the currently read IOBufs are for(which callback function to call)? I know that there is a sequence id in headers but are you also sending a unique id to the server that will be added to the frames which determines the request?
Is there example code on how to make this work for cpp2 ThriftServer and the cpp2 async client. I have been struggling with this. I raised issue #52 for the same. If anyone has examples, please lemme know.. Thanks !
Activity
tudor commentedon Jul 31, 2014
Requests may complete in any order, and you may receive responses in any
order, even for requests sent using the same connection.
mehDsn commentedon Jul 31, 2014
Thanks for quick reply. How does client know which request is the currently read IOBufs are for(which callback function to call)? I know that there is a sequence id in headers but are you also sending a unique id to the server that will be added to the frames which determines the request?
djwatson commentedon Jul 31, 2014
Right, the unique ID is the header sequence ID, and it's basically an std::map on the client of seqid->async callback
varunsharmagit commentedon Nov 27, 2014
Is there example code on how to make this work for cpp2 ThriftServer and the cpp2 async client. I have been struggling with this. I raised issue #52 for the same. If anyone has examples, please lemme know.. Thanks !
alandau commentedon Dec 1, 2014
I commented on issue #52.
thrift/lib/cpp2/test/StreamingTest.cpp: fix SIOF bug and heap-use-aft…
Fix TMemoryBuffer::ensureCanWrite
Add e2e regression test for Cpp2Channel::writeError upgrade-teardown UAF