diff options
author | Yash Tibrewal <yashkt@google.com> | 2018-09-06 15:26:36 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2018-09-06 15:26:36 -0700 |
commit | b91da3f4bf4ab30428e50a0c6734fcb931e3d85e (patch) | |
tree | 616e901996ff635ff44e47481a457d23b343320a /src/core/lib/iomgr/tcp_server_utils_posix_common.cc | |
parent | 39e53c13bf1f62fdfe7e05fbfe5427f5ad3b1a90 (diff) |
Add support for reading channel args
Diffstat (limited to 'src/core/lib/iomgr/tcp_server_utils_posix_common.cc')
-rw-r--r-- | src/core/lib/iomgr/tcp_server_utils_posix_common.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/tcp_server_utils_posix_common.cc b/src/core/lib/iomgr/tcp_server_utils_posix_common.cc index 20b9037c68..6cebc84024 100644 --- a/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +++ b/src/core/lib/iomgr/tcp_server_utils_posix_common.cc @@ -166,7 +166,8 @@ grpc_error* grpc_tcp_server_prepare_socket(grpc_tcp_server* s, int fd, if (err != GRPC_ERROR_NONE) goto error; err = grpc_set_socket_reuse_addr(fd, 1); if (err != GRPC_ERROR_NONE) goto error; - err = grpc_set_socket_tcp_user_timeout(fd, 0 /* set to gRPC default */); + err = grpc_set_socket_tcp_user_timeout(fd, s->channel_args, + false /* is_client */); if (err != GRPC_ERROR_NONE) goto error; } err = grpc_set_socket_no_sigpipe_if_possible(fd); |