Issue #2430 - No longer force tcp send buffer size on HTTP/2 uploads > 128KB

With connection-level and stream-level flow control, it is not needed.
On fast connections with large-ish BWP, this can improve upload speed by > 5x
This commit is contained in:
Martok 2024-01-02 01:20:19 +01:00 committed by roytam1
commit c451531d54
3 changed files with 9 additions and 4 deletions

View file

@ -1437,8 +1437,12 @@ nsHttpHandler::PrefsChanged(nsIPrefBranch *prefs, const char *pref)
// closing the session.
if (PREF_CHANGED(HTTP_PREF("spdy.send-buffer-size"))) {
rv = prefs->GetIntPref(HTTP_PREF("spdy.send-buffer-size"), &val);
if (NS_SUCCEEDED(rv))
mSpdySendBufferSize = (uint32_t) clamped(val, 1500, 0x7fffffff);
if (NS_SUCCEEDED(rv)) {
if (val != 0)
mSpdySendBufferSize = (uint32_t) clamped(val, 1500, 0x7fffffff);
else
mSpdySendBufferSize = 0;
}
}
// The maximum amount of time to wait for socket transport to be