diff options
author | Yash Tibrewal <yashkt@google.com> | 2018-11-02 09:19:33 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2018-11-02 09:19:33 -0700 |
commit | 24ca03dad7e91ebc49cfb7da5d825bde7c3b0557 (patch) | |
tree | 513312542ed5045ac91bf2b64c5e163eaf8d34aa | |
parent | 8afddf1c48108607eecf74507fa8b01bdfd59a04 (diff) |
Do not make TCP_USER_TIMEOUT failure an error
-rw-r--r-- | src/core/lib/iomgr/socket_utils_common_posix.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/socket_utils_common_posix.cc b/src/core/lib/iomgr/socket_utils_common_posix.cc index 50674b0845..aa3c72e65d 100644 --- a/src/core/lib/iomgr/socket_utils_common_posix.cc +++ b/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)"); } if (newval != timeout) { - return GRPC_ERROR_CREATE_FROM_STATIC_STRING( - "Failed to set TCP_USER_TIMEOUT"); + /* Do not fail on failing to set TCP_USER_TIMEOUT for now. */ + gpr_log(GPR_ERROR, "Failed to set TCP_USER_TIMEOUT"); + return GRPC_ERROR_NONE; } } #else |