diff options
author | Robert Nagy <robert@openbsd.org> | 2022-06-18 05:51:42 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2022-06-22 08:02:35 +0000 |
commit | 80ffbf089df7cc8d4b4879e23f6816fc7e338f7f (patch) | |
tree | 23b8c15850649e788bdcc2a8b3ed62ff0d793988 /www/chromium/files/patch-net_socket_tcp__socket__posix.cc | |
parent | e408d5e4ec74b0d09aa3306a49065cac0c429427 (diff) |
Diffstat (limited to 'www/chromium/files/patch-net_socket_tcp__socket__posix.cc')
-rw-r--r-- | www/chromium/files/patch-net_socket_tcp__socket__posix.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/www/chromium/files/patch-net_socket_tcp__socket__posix.cc b/www/chromium/files/patch-net_socket_tcp__socket__posix.cc index f49f1cb1caa9..8408ed6a4f63 100644 --- a/www/chromium/files/patch-net_socket_tcp__socket__posix.cc +++ b/www/chromium/files/patch-net_socket_tcp__socket__posix.cc @@ -1,20 +1,20 @@ ---- net/socket/tcp_socket_posix.cc.orig 2022-04-21 18:48:31 UTC +--- net/socket/tcp_socket_posix.cc.orig 2022-06-17 14:20:10 UTC +++ net/socket/tcp_socket_posix.cc -@@ -97,6 +97,17 @@ bool SetTCPKeepAlive(int fd, bool enable, int delay) { - PLOG(ERROR) << "Failed to set TCP_KEEPALIVE on fd: " << fd; - return false; - } +@@ -100,6 +100,17 @@ bool SetTCPKeepAlive(int fd, bool enable, int delay) { + PLOG(ERROR) << "Failed to set TCP_KEEPALIVE on fd: " << fd; + return false; + } +#elif BUILDFLAG(IS_FREEBSD) + // Set seconds until first TCP keep alive. + if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &delay, sizeof(delay))) { + PLOG(ERROR) << "Failed to set TCP_KEEPIDLE on fd: " << fd; + return false; + } -+ // Set seconds between TCP keep alives. ++ // Set seconds between TCP keep alives. + if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, &delay, sizeof(delay))) { + PLOG(ERROR) << "Failed to set TCP_KEEPINTVL on fd: " << fd; + return false; + } #endif - return true; - } + } + |