diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-02-19 20:27:33 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-19 20:27:33 +0100 |
commit | 40d8e355ceb8a309b4878c2629334c3b9c7d20e9 (patch) | |
tree | 0bbe610eb0598086993f4db815e9988b2176cd1e /netwerk/base/nsSocketTransport2.cpp | |
parent | da8f20a3b05387aaa1c7c81543f1aae6dd1ca99d (diff) | |
download | UXP-40d8e355ceb8a309b4878c2629334c3b9c7d20e9.tar UXP-40d8e355ceb8a309b4878c2629334c3b9c7d20e9.tar.gz UXP-40d8e355ceb8a309b4878c2629334c3b9c7d20e9.tar.lz UXP-40d8e355ceb8a309b4878c2629334c3b9c7d20e9.tar.xz UXP-40d8e355ceb8a309b4878c2629334c3b9c7d20e9.zip |
Remove Windows XP specific code in netwerk.
Diffstat (limited to 'netwerk/base/nsSocketTransport2.cpp')
-rw-r--r-- | netwerk/base/nsSocketTransport2.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/netwerk/base/nsSocketTransport2.cpp b/netwerk/base/nsSocketTransport2.cpp index 1bfd1fc91..184757d33 100644 --- a/netwerk/base/nsSocketTransport2.cpp +++ b/netwerk/base/nsSocketTransport2.cpp @@ -40,7 +40,6 @@ #include "xpcpublic.h" #if defined(XP_WIN) -#include "mozilla/WindowsVersion.h" #include "ShutdownLayer.h" #endif @@ -1724,21 +1723,6 @@ nsSocketTransport::OnSocketConnected() NS_ASSERTION(mFDref == 1, "wrong socket ref count"); SetSocketName(mFD); mFDconnected = true; - -#ifdef XP_WIN - if (!IsWin2003OrLater()) { // windows xp - PRSocketOptionData opt; - opt.option = PR_SockOpt_RecvBufferSize; - if (PR_GetSocketOption(mFD, &opt) == PR_SUCCESS) { - SOCKET_LOG(("%p checking rwin on xp originally=%u\n", - this, opt.value.recv_buffer_size)); - if (opt.value.recv_buffer_size < 65535) { - opt.value.recv_buffer_size = 65535; - PR_SetSocketOption(mFD, &opt); - } - } - } -#endif } // Ensure keepalive is configured correctly if previously enabled. |