Grpc: Unable to reconnect within about 15 seconds after restarting the server.

The client cannot reconnect to the server immediately after the server reboots. Instead, it restores the connection after only 15 seconds of inactivity. I also cannot call the server with the newly created channel / client from the same process. But it is successfully connected if I start a new client instance in a separate process.

I'm not sure, but suppose the problem arose after switching from version 1.0.0 to version 1.6.1 grpc. Maybe there is a new tweak to change this behavior?

My call status:

0. Grpc.Core.Internal.CompletionQueueSafeHandle.Pluck (Source Unavailable) 1. Grpc.Core.Internal.AsyncCall`2.UnaryCall (Source Unavailable) 2. Grpc.Core.DefaultCallInvoker.BlockingUnaryCall (Source Unavailable) 3. Grpc.Core.Internal.InterceptingCallInvoker.BlockingUnaryCall (Source Unavailable) 
+7
c # windows grpc
source share
1 answer

Maybe some new settings were introduced to change this behavior?

I looked through the grpc release notes from 1.0.0 to 1.6.1 and found the following change in 1.6 note (C # section):

Custom handlers no longer run in the Grpc thread pool for added security.

You may need to make some code adjustments to the handler. Hope this helps.

0
source share

All Articles