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 | baf2c56a671e0c428110918c37dd1d31a626115f (patch) | |
tree | 98c4e605f3ce273f65fdf208275c433ee4566d4c /netwerk | |
parent | e2217eb7153068b6ebe358a2bf8867ec40ea8f79 (diff) | |
download | uxp-baf2c56a671e0c428110918c37dd1d31a626115f.tar.gz |
Issue mcp-graveyard/UXP#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. |