Hi,

I am doing some testing between a client and a server to understand how 
GRPC C++ buffers messages being written to a RPC stream when the network 
connection is switched off. 

GRPC_ARG_HTTP2_WRITE_BUFFER_SIZE is set to 64 bytes when creating the 
channel, and each message written to the stream is 52 bytes large.

Steps are the following:

   - Start server and client
   - Client creates a channel with no keep alive and 
   GRPC_ARG_HTTP2_WRITE_BUFFER_SIZE is set to 64 bytes
   - Client writes 52 bytes large message every 5 seconds, server logs each 
   message received
   - Network connection is turned off at time T
   - Client keeps writing 52 bytes large message every 5 seconds, 
   WriterInterface::Write keeps returning true.
   - Network connection is turned on at time T + 1 minute
   - Clients continues  writing 52 bytes large message every 5 seconds, 
   Server logs the message written around time T and messages written after T 
   + 1 minute
   
As expected only one message has been buffered by GRPC library.

However it is the first message being written after the network connection 
has been turned off and subsequent writing operations did not escalate any 
error saying that written messages were lost.

Is there any API that would notify about such situation?

Thank you,
David

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/483d654c-0654-4fc1-8612-f929820e9f85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to