Are you using any keepalive settings on the client and/or server? If so, 
check these settings since they may be closing connections. If you are 
using a LoadBalancer, there may be a timeout that is enabled that closes 
the connection. For example, the AWS Application Load Balancer has an 
IdleTimeout that can close the connection once the duration is reached. 
>From a cpp client this looks like an errcode=13, errmsg=Received RST_STREAM 
with error code 2.
On Tuesday, March 9, 2021 at 3:26:14 PM UTC-8 [email protected] wrote:

> Hi,
>
> I have a simple service with one RPC, e.g.
> rpc Foo (FooReq) returns (FooRes)
>
> Now, calls to Foo can potentially take a very long time to process on the 
> server (up to several minutes). However, when this happens, I get the 
> following error:
> %GRPC.RPCError{message: ":stream_error: :closed", status: 13}
>
> We are planning on refactoring this service to be asynchronous, so that 
> the client does not need to block on waiting for the server's response, but 
> in the meantime we hope to fix this error. Is there anything to be done?
>
> Thanks!
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/ffa759ca-2102-4152-986e-2146b1fd98f6n%40googlegroups.com.

Reply via email to