containerd / ttrpc-rust

Rust implementation of ttrpc (GRPC for low-memory environments)
Apache License 2.0
197 stars 47 forks source link

async-server: Fill TtrpcContext with stream fd instead of listenfd #111

Closed Tim-Zhang closed 2 years ago

Tim-Zhang commented 2 years ago

The async implement is wrong compared to the sync version. This commit would fix this problem.

So that we can distinguish different connections by the fd field of TtrpcContext.

Signed-off-by: Tim Zhang tim@hyper.sh