Merge pull request #17083 from yashykt/tcpusertimeout

Do not make TCP_USER_TIMEOUT failure an error
pull/17084/head
Yash Tibrewal 6 years ago committed by GitHub
commit 7a08e3b679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/core/lib/iomgr/socket_utils_common_posix.cc

@ -302,8 +302,9 @@ grpc_error* grpc_set_socket_tcp_user_timeout(
return GRPC_OS_ERROR(errno, "getsockopt(TCP_USER_TIMEOUT)"); return GRPC_OS_ERROR(errno, "getsockopt(TCP_USER_TIMEOUT)");
} }
if (newval != timeout) { if (newval != timeout) {
return GRPC_ERROR_CREATE_FROM_STATIC_STRING( /* Do not fail on failing to set TCP_USER_TIMEOUT for now. */
"Failed to set TCP_USER_TIMEOUT"); gpr_log(GPR_ERROR, "Failed to set TCP_USER_TIMEOUT");
return GRPC_ERROR_NONE;
} }
} }
#else #else

Loading…
Cancel
Save