diff options
author | Moonchild <moonchild@palemoon.org> | 2021-05-02 07:10:18 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-05-02 07:10:18 +0000 |
commit | 3d671e4275c73a1484c72713304c6e04ec4ffc7c (patch) | |
tree | 98c4e605f3ce273f65fdf208275c433ee4566d4c /netwerk | |
parent | 56da7e27477d0d4669980d2ce17f3b877ea0c36c (diff) | |
download | uxp-3d671e4275c73a1484c72713304c6e04ec4ffc7c.tar.gz |
Issue #1751 -- Remove XP_DARWIN
Diffstat (limited to 'netwerk')
-rw-r--r-- | netwerk/base/nsSocketTransport2.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/netwerk/base/nsSocketTransport2.cpp b/netwerk/base/nsSocketTransport2.cpp index 76a357aa3f..b560eae6d1 100644 --- a/netwerk/base/nsSocketTransport2.cpp +++ b/netwerk/base/nsSocketTransport2.cpp @@ -3035,17 +3035,6 @@ nsSocketTransport::PRFileDescAutoLock::SetKeepaliveVals(bool aEnabled, } return NS_OK; -#elif defined(XP_DARWIN) - // Darwin uses sec; only supports idle time being set. - int err = setsockopt(sock, IPPROTO_TCP, TCP_KEEPALIVE, - &aIdleTime, sizeof(aIdleTime)); - if (NS_WARN_IF(err)) { - LogOSError("nsSocketTransport Failed setting TCP_KEEPALIVE", - mSocketTransport); - return NS_ERROR_UNEXPECTED; - } - return NS_OK; - #elif defined(XP_UNIX) // Not all *nix OSes support the following setsockopt() options // build errors will tell us if they are not. |