Comments (5)
Requests may complete in any order, and you may receive responses in any
order, even for requests sent using the same connection.
from fbthrift.
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?
from fbthrift.
Right, the unique ID is the header sequence ID, and it's basically an std::map on the client of seqid->async callback
from fbthrift.
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 !
from fbthrift.
I commented on issue #52.
from fbthrift.
Related Issues (20)
- CPP: Reference enum from another generated header HOT 1
- 'make test' says: unknown target 'test', did you mean 'help'?
- Does Thrift really work on L7 with `HTTP2RoutingHandler` and `HTTPClientChannel` HOT 2
- HTTP2 support for thrift go client HOT 1
- Expand contributing instructions
- Compact protocol map specification bug
- No sudo on Mac HOT 1
- Nece
- build error fmt format HOT 2
- 2023.05.01.00: The library libcompiler_base changed type from shared to static HOT 1
- fizz integration: no matching constructor for initialization of 'wangle::FizzAcceptorHandshakeHelper' HOT 1
- build failed with getdps.py on Mac OS 13.4
- Configure fails: The dependency target "mvfst::mvfst_server_async_tran" of target "thriftcpp2" does not exist
- Evalaute Profile-Guided Optimization (PGO) and LLVM BOLT
- fatal error: thrift/lib/thrift/gen-cpp2/protocol_types.h: No such file or directory HOT 1
- Faile to compile fbthrift directly or theogh CacheLib
- go lib bugs for concurrent server HOT 4
- Async client memory leak
- missing build/deps/github_hashes/facebook/mvfst-rev.txt HOT 2
- thrift crash problem HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fbthrift.