25 ms·
Not that I know anything about the grpc codebase, but in my experience it is often easier to implement timeouts at a higher level instead of tweaking several so
by iforgotpassword 8y ago
Not that I know anything about the grpc codebase, but in my experience it is often easier to implement timeouts at a higher level instead of tweaking several socket options. Apart from being more portable, it now doesn't matter whether the connection dropped, stalled, or the handshake hangs. When your timeout fires you mark the endpoint as bad and tear down the connection, or optionally retry once if the last failure wasn't too recent.