Files
orca/src
Kelvin Amoaba 6ba1566508 fix(browser): let heavy pages open all their connections through the paired tunnel (#37087)
* fix(browser): stop the paired tunnel refusing a heavy page's connections

The client capped a tunnel at 32 streams and the server refused opens past
16 pending connects, so ja.aliexpress.com (77-105 concurrent connections)
lost requests with ERR_SOCKS_CONNECTION_FAILED. Size the stream cap to
Chromium's 256-socket pool on the client, server and SOCKS listener, drop
the pending cap the stream cap already bounds, and raise the open rate to
1024 per 10 s above the measured 302.

* fix(browser): fail only the stream that overflows the tunnel receive budget

More streams per tunnel make the shared 32 MB receive budget reachable, and
a denied claim closed the whole tunnel as if the server sent invalid data.
Fail just that stream, as the server session already does.

* fix(browser): release a failed stream's claims before reporting it, update tunnel gate text

* fix(browser): keep room in the tunnel memory budget for a failed stream's Error frame

Application claims now stop 64 KiB and 64 claims short of the host and
process caps, so the Error frame for a stream failed by a full receive
budget can still be queued instead of closing the whole tunnel.
2026-11-01 17:58:18 +00:00
..