Regarding the logging, I believe I simply wasn't seeing these messages because I had explicitly disabled keepalive. When I set the keepalive time and timeout to 10 seconds each, I see the `TCP_USER_TIMEOUT` being set to 10 seconds as expected.
-- Kyle J Strand Senior Software Engineer (Pronouns: he/him) [email protected] rigetti.com Confidentiality Note: This message is for the intended recipient only and may contain proprietary, privileged, or confidential information. The use, copying or distribution of the contents of this email, or any attachments hereto, by anyone other than the intended recipient, or an employee or agent authorized by the intended recipient, is prohibited. On Thu, Apr 25, 2024 at 3:27 PM Kyle Strand <[email protected]> wrote: > I'm concerned that I'm seeing an issue similar to this old one > <https://github.com/grpc/grpc/issues/15889>, so I want to verify that > `TCP_USER_TIMEOUT` is set to something reasonable. > > To configure that value, it sounds like gRPC keepalive must be enabled, > but there are concerns this is "dangerous" > <https://github.com/grpc/grpc/issues/25713>. Additionally, there appears > to be at least one bug <https://github.com/grpc/grpc/issues/36411> in the > Python keepalive configuration. Is it possible to side-step these issues by > configuring the `TCP_USER_TIMEOUT` separately from the grpc keepalive? > > Additionally, is it possible to verify how the timeout is configured? From > the source code > <https://github.com/grpc/grpc/blob/master/src/core/lib/iomgr/socket_utils_common_posix.cc#L367>, > looks like there should be log messages explicitly indicating whether > `TCP_USER_TIMEOUT` is supported and how it's configured. However, I don't > see any log entries containing that string, even though I do see logging > from `tcp_posix.cc`. > > I have these environment variables set: > > ``` > GRPC_VERBOSITY="INFO" > > GRPC_TRACE="tcp,http_keepalive,http2_ping,resource_quota,queue_pluck,timer,health_check_client,executor,connectivity_state" > ``` > > ...but I don't see any log messages with `TCP_USER_TIMEOUT`. > -- 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/CA%2BpRqg76t7FG2MJ%3DgGL7W%2B_Esd8EC4ZHuTar1RSDk0Q_qY0UWA%40mail.gmail.com.
