aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/socket_utils_common_posix.cc
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-09-12 17:09:01 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2018-09-12 17:09:01 -0700
commit2f6640f005196d71cb27d9d47e06cb130fd84502 (patch)
tree53a11ec9c31d9024f7481c54c3dd15cc55bbe118 /src/core/lib/iomgr/socket_utils_common_posix.cc
parentb91da3f4bf4ab30428e50a0c6734fcb931e3d85e (diff)
Add logging to be sure about set values
Diffstat (limited to 'src/core/lib/iomgr/socket_utils_common_posix.cc')
-rw-r--r--src/core/lib/iomgr/socket_utils_common_posix.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/socket_utils_common_posix.cc b/src/core/lib/iomgr/socket_utils_common_posix.cc
index 4ef3d8319f..50674b0845 100644
--- a/src/core/lib/iomgr/socket_utils_common_posix.cc
+++ b/src/core/lib/iomgr/socket_utils_common_posix.cc
@@ -287,6 +287,11 @@ grpc_error* grpc_set_socket_tcp_user_timeout(
}
}
if (enable) {
+ extern grpc_core::TraceFlag grpc_tcp_trace;
+ if (grpc_tcp_trace.enabled()) {
+ gpr_log(GPR_INFO, "Enabling TCP_USER_TIMEOUT with a timeout of %d ms",
+ timeout);
+ }
int newval;
socklen_t len = sizeof(newval);
if (0 != setsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, &timeout,