Skip to content

Question: Send responses out of order? #22

Closed

Description

@mehDsn

Hi

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?

Activity

  1. tudor commented on Jul 31, 2014

    @tudor
    Contributor

    Requests may complete in any order, and you may receive responses in any
    order, even for requests sent using the same connection.

  2. mehDsn commented on Jul 31, 2014

    @mehDsn
    Author

    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?

  3. djwatson commented on Jul 31, 2014

    @djwatson

    Right, the unique ID is the header sequence ID, and it's basically an std::map on the client of seqid->async callback

  4. varunsharmagit commented on Nov 27, 2014

    @varunsharmagit

    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 !

  5. alandau commented on Dec 1, 2014

    @alandau
    Contributor

    I commented on issue #52.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions