mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Issue #2430 - Allow network.http.spdy.chunk-size to be larger than 16K
According to https://datatracker.ietf.org/doc/html/rfc7540#section-4.2 The size of a frame payload is limited by the maximum size that a receiver advertises in the SETTINGS_MAX_FRAME_SIZE setting. This setting can have any value between 2^14 (16,384) and 2^24-1 (16,777,215) octets, inclusive.
This commit is contained in:
parent
f3d37946be
commit
3e65ae353a
1 changed files with 2 additions and 2 deletions
|
|
@ -1362,10 +1362,10 @@ nsHttpHandler::PrefsChanged(nsIPrefBranch *prefs, const char *pref)
|
|||
}
|
||||
|
||||
if (PREF_CHANGED(HTTP_PREF("spdy.chunk-size"))) {
|
||||
// keep this within http/2 ranges of 1 to 2^14-1
|
||||
// keep this within http/2 ranges of 1 to 2^24-1
|
||||
rv = prefs->GetIntPref(HTTP_PREF("spdy.chunk-size"), &val);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
mSpdySendingChunkSize = (uint32_t) clamped(val, 1, 0x3fff);
|
||||
mSpdySendingChunkSize = (uint32_t) clamped(val, 1, 0xffffff);
|
||||
}
|
||||
|
||||
// The amount of idle seconds on a spdy connection before initiating a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue