Bug 1426408 - Remove some code for the TCP fast open for Windows 10 that is not neede any more. r=mayhemer

--HG--
extra : rebase_source : 8ab4fbe254eaaca0595cfbcd6ba527810ecc5102
This commit is contained in:
Dragana Damjanovic 2017-12-20 08:39:00 +02:00
parent 0319902c5b
commit ef300e6ca6
2 changed files with 1 additions and 6 deletions

View File

@ -421,8 +421,7 @@ TCPFastOpenFinish(PRFileDesc *fd, PRErrorCode &err,
result = PR_GetError(); result = PR_GetError();
SOCKET_LOG(("TCPFastOpenFinish - sendto error=%d.\n", result)); SOCKET_LOG(("TCPFastOpenFinish - sendto error=%d.\n", result));
if (result == PR_NOT_IMPLEMENTED_ERROR || // When a windows version does not support Fast Open it will return this error. if (result == PR_NOT_TCP_SOCKET_ERROR) { // SendTo will return PR_NOT_TCP_SOCKET_ERROR if TCP Fast Open is turned off on Linux.
result == PR_NOT_TCP_SOCKET_ERROR) { // SendTo will return PR_NOT_TCP_SOCKET_ERROR if TCP Fast Open is turned off on Linux.
// We can call connect again. // We can call connect again.
fastOpenNotSupported = true; fastOpenNotSupported = true;
rv = (tfoFd->lower->methods->connect)(tfoFd->lower, &secret->mAddr, rv = (tfoFd->lower->methods->connect)(tfoFd->lower, &secret->mAddr,

View File

@ -184,10 +184,6 @@ public:
// If one of tcp connections return PR_NOT_TCP_SOCKET_ERROR while trying // If one of tcp connections return PR_NOT_TCP_SOCKET_ERROR while trying
// fast open, it means that Fast Open is turned off so we will not try again // fast open, it means that Fast Open is turned off so we will not try again
// until a restart. This is only on Linux. // until a restart. This is only on Linux.
// For windows 10 we can only check whether a version of windows support
// Fast Open at run time, so if we get error PR_NOT_IMPLEMENTED_ERROR it
// means that Fast Open is not supported and we will set mFastOpenSupported
// to false.
void SetFastOpenNotSupported() { mFastOpenSupported = false; } void SetFastOpenNotSupported() { mFastOpenSupported = false; }
void IncrementFastOpenConsecutiveFailureCounter(); void IncrementFastOpenConsecutiveFailureCounter();