Bug 1426367 - Turn on TFO for Windows. r=hurley

This commit is contained in:
Dragana Damjanovic 2017-12-21 18:43:57 +01:00
Родитель 66a1074054
Коммит 93626c6bec
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -4782,7 +4782,11 @@ pref("network.tcp.keepalive.retry_interval", 1); // seconds
pref("network.tcp.keepalive.probe_count", 4);
#endif
#if defined(XP_WIN)
pref("network.tcp.tcp_fastopen_enable", true);
#else
pref("network.tcp.tcp_fastopen_enable", false);
#endif
pref("network.tcp.tcp_fastopen_consecutive_failure_limit", 5);
// We are trying to detect stalled tcp connections that use TFO and TLS
// (bug 1395494).

Просмотреть файл

@ -4584,7 +4584,6 @@ nsHalfOpenSocket::SetFastOpenConnected(nsresult aError, bool aWillRetry)
mConnectionNegotiatingFastOpen = nullptr;
if (mEnt) {
mEnt->mDoNotDestroy = false;
MOZ_ASSERT(mEnt->mHalfOpens.Contains(this));
} else {
MOZ_ASSERT(!mSynTimer);
MOZ_ASSERT(!mBackupTransport);