diff options
Diffstat (limited to 'www/chromium/patches/patch-net_socket_tcp_socket_posix_cc')
| -rw-r--r-- | www/chromium/patches/patch-net_socket_tcp_socket_posix_cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/www/chromium/patches/patch-net_socket_tcp_socket_posix_cc b/www/chromium/patches/patch-net_socket_tcp_socket_posix_cc deleted file mode 100644 index b5dc8d8..0000000 --- a/www/chromium/patches/patch-net_socket_tcp_socket_posix_cc +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | Index: net/socket/tcp_socket_posix.cc | ||
| 2 | --- net/socket/tcp_socket_posix.cc.orig | ||
| 3 | +++ net/socket/tcp_socket_posix.cc | ||
| 4 | @@ -96,6 +96,17 @@ bool SetTCPKeepAlive(int fd, bool enable, int delay) { | ||
| 5 | PLOG(ERROR) << "Failed to set TCP_KEEPALIVE on fd: " << fd; | ||
| 6 | return false; | ||
| 7 | } | ||
| 8 | +#elif BUILDFLAG(IS_FREEBSD) | ||
| 9 | + // Set seconds until first TCP keep alive. | ||
| 10 | + if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &delay, sizeof(delay))) { | ||
| 11 | + PLOG(ERROR) << "Failed to set TCP_KEEPIDLE on fd: " << fd; | ||
| 12 | + return false; | ||
| 13 | + } | ||
| 14 | + // Set seconds between TCP keep alives. | ||
| 15 | + if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, &delay, sizeof(delay))) { | ||
| 16 | + PLOG(ERROR) << "Failed to set TCP_KEEPINTVL on fd: " << fd; | ||
| 17 | + return false; | ||
| 18 | + } | ||
| 19 | #endif | ||
| 20 | return true; | ||
| 21 | } | ||
