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
@ajhai
Hello :
I started a streaming server for test. My .proto file descriped the grpc service as below, the 'events' RPC is a streaming RPC.
I started the event grpc client, and the server wrote the responses to the client. The client got the responses successfully. But when I killed the client with (kill -9 PID), the server still sent the responses successfully, the function context->gcc_writer->write() returned 0.
In my opinion, when i killed the client with (kill -9 PID), the server write function context->gcc_writer->write() should return fail. But now , it still return success, is this a bug? Is there any other ways to check the connections with the clients?
@lifeng68 I have pushed some changes over weekend. You can now use grpc_c_context_is_call_cancelled(context) from server to check if client has disconnected. Ideally writer_write should return fail. If it is not doing that, it is a bug. Let me test it and add some examples around streaming. Also, I'm making some more changes. Expect things to break. I will reply on this thread when once I test streaming server.
@ajhai
Hello :
I started a streaming server for test. My .proto file descriped the grpc service as below, the 'events' RPC is a streaming RPC.
I started the event grpc client, and the server wrote the responses to the client. The client got the responses successfully. But when I killed the client with (kill -9 PID), the server still sent the responses successfully, the function
context->gcc_writer->write()
returned 0.In my opinion, when i killed the client with (kill -9 PID), the server write function
context->gcc_writer->write()
should return fail. But now , it still return success, is this a bug? Is there any other ways to check the connections with the clients?The text was updated successfully, but these errors were encountered: