mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
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:
parent
0319902c5b
commit
ef300e6ca6
@ -421,8 +421,7 @@ TCPFastOpenFinish(PRFileDesc *fd, PRErrorCode &err,
|
||||
result = PR_GetError();
|
||||
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.
|
||||
result == PR_NOT_TCP_SOCKET_ERROR) { // SendTo will return PR_NOT_TCP_SOCKET_ERROR if TCP Fast Open is turned off on Linux.
|
||||
if (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.
|
||||
fastOpenNotSupported = true;
|
||||
rv = (tfoFd->lower->methods->connect)(tfoFd->lower, &secret->mAddr,
|
||||
|
@ -184,10 +184,6 @@ public:
|
||||
// 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
|
||||
// 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 IncrementFastOpenConsecutiveFailureCounter();
|
||||
|
Loading…
Reference in New Issue
Block a user