<div dir="auto"><div>Have you tried configuring grpc timeouts on NGINX? </div><div dir="auto"><br></div><div dir="auto">This combined with an upstream healthcheck should prevent any client connections that aren't possible for NGINX to service.</div><div dir="auto"><br></div><div dir="auto"><a href="https://nginx.org/en/docs/http/ngx_http_grpc_module.html#grpc_connect_timeout">https://nginx.org/en/docs/http/ngx_http_grpc_module.html#grpc_connect_timeout</a><br></div><div dir="auto"><br></div><div dir="auto"><a href="https://docs.nginx.com/nginx/admin-guide/load-balancer/grpc-health-check/">https://docs.nginx.com/nginx/admin-guide/load-balancer/grpc-health-check/</a><br></div><div dir="auto"><br></div><div><br></div><div data-smartmail="gmail_signature">Regards,<br><br>Jason</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 25, 2024, 6:01 AM Ľuboš Pinteš <<a href="mailto:lubos.pintes@seznam.cz">lubos.pintes@seznam.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, everybody,<br>
I am implementing a GRPC service which has methods, i.e. request/reply <br>
and one streaming method, through which the server sends events at <br>
random intervals.<br>
The GRPC server is written in Go, the client in C#, we are using Grpc.Core.<br>
<br>
If the server is not running and I call one of the request/reply <br>
methods, an error occurs as I expect. But if I call the streaming <br>
method, Nginx accepts the connection and the client gets stuck on <br>
calling await events.ResponseStream.MoveNext(...);<br>
<br>
I would like to ask how to configure Nginx so that an error occurs even <br>
if the streaming method is called if the server is not running, e.g. it <br>
restarts out of my control if the server on which my service is running <br>
restarts.<br>
<br>
Thank you<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank" rel="noreferrer">nginx@nginx.org</a><br>
<a href="https://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer noreferrer" target="_blank">https://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>