[grpc-io] Re: How gRPC Server Completion Queue manage its connections

2021-11-22 Thread Jingsong Meng
Thanks for you recommendations, I will study it (ServerContext:auth_context, ServerContext::peer) and give replies if they can help. Actually, I'm doing a project to optimize grpc with rdma. Finsh/FinalizeResult are the places to serialize/deserialize message from/to user to/from grpc

[grpc-io] Re: How gRPC Server Completion Queue manage its connections

2021-11-22 Thread 'Christopher Warrington - MSFT' via grpc.io
On Monday, November 22, 2021 at 7:09:22 PM UTC-8 meng...@gmail.com wrote: > I didn't have any hint to locate which connection/fd from this 'tag'. I > think grpc have some record to pair this 'tag' with connection. And if one > client send multiple requests, each request has its own 'tag', but

[grpc-io] Re: How gRPC Server Completion Queue manage its connections

2021-11-22 Thread Jingsong Meng
Thanks. I'm learning your thread https://groups.google.com/g/grpc-io/c/bXMmfah57h4/m/EUg2B8o1AgAJ. And i think server handle all new connections in 'on_read' function (inside src/core/lib/iomgr/tcp_server_posix.cc). For each connection, server create a fd for it (so one connection bind with

[grpc-io] Re: How gRPC Server Completion Queue manage its connections

2021-11-22 Thread 'Christopher Warrington - MSFT' via grpc.io
On Friday, November 19, 2021 at 3:07:02 PM UTC-8 meng...@gmail.com wrote: > If i use one completion queue in server side to handle all of the > connections, for each return from cq.AsyncNext, how do i know which > connection it is. You will need to augment CallData with these sort of details.