mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
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:
parent
3e65ae353a
commit
c451531d54
3 changed files with 9 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue