A grpc ClientContext has set_wait_for_ready method. https://grpc.github.io/grpc/cpp/classgrpc_1_1_client_context.html#aa342af7349c88727e8bd4c765a000ae5
вторник, 9 ноября 2021 г. в 01:41:34 UTC+3, [email protected]: > Thanks for answering the question. What happens to the inflight client > calls when the server terminates and then restarts? Does the client gets an > error "UNAVAILABLE" and they have to add logic to retry the failed call, or > gRPC call will just block and returns when server becomes alive? > > Regards, > Hemendra > > On Monday, November 8, 2021 at 10:12:58 AM UTC-8 [email protected] wrote: > >> Hi Hemendra, >> >> A gRPC channel will reconnect automatically. >> >> On Sun, Nov 7, 2021 at 7:59 PM Hemendra Rawat <[email protected]> wrote: >> >>> Hi All, >>> >>> I'm new to using gRPC framework! >>> >>> What will happen if the gRPC server process terminates and is restarted >>> after few seconds for e.g. 20 seconds delay ? Will the client side channel >>> auto reconnect or do I need to add specific logic on client side to handle >>> reconnects on server restart? >>> >>> >>> >>> >>> -- >>> 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/81b09b62-bcba-47e8-bea8-50112985b645n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/grpc-io/81b09b62-bcba-47e8-bea8-50112985b645n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- 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/4fe0c61b-0b97-4b8d-8150-31c46bf5587en%40googlegroups.com.
