diff options
author | 2018-08-21 11:59:24 -0700 | |
---|---|---|
committer | 2018-08-21 11:59:24 -0700 | |
commit | 2f8e60a7737293a3e44f555ac9de92267785e91f (patch) | |
tree | d23eac902eea669821f4002ee905d1bb50161bf8 /src/core/lib/iomgr/socket_utils_posix.h | |
parent | ccc6ee3db0924e6f6e9aa1c8ccd60d7e562e6615 (diff) |
Set TCP_USER_TIMEOUT socket option
Diffstat (limited to 'src/core/lib/iomgr/socket_utils_posix.h')
-rw-r--r-- | src/core/lib/iomgr/socket_utils_posix.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/socket_utils_posix.h b/src/core/lib/iomgr/socket_utils_posix.h index b3fd58a530..8550bd1324 100644 --- a/src/core/lib/iomgr/socket_utils_posix.h +++ b/src/core/lib/iomgr/socket_utils_posix.h @@ -53,6 +53,9 @@ grpc_error* grpc_set_socket_low_latency(int fd, int low_latency); /* set SO_REUSEPORT */ grpc_error* grpc_set_socket_reuse_port(int fd, int reuse); +/* Set TCP_USER_TIMEOUT to val, or the default value if val is 0. */ +grpc_error* grpc_set_socket_tcp_user_timeout(int fd, int val); + /* Returns true if this system can create AF_INET6 sockets bound to ::1. The value is probed once, and cached for the life of the process. |