Skip to content

Commit 552d1c5

Browse files
committed
Comment on why we're increasing recv_buf
1 parent c7a2b55 commit 552d1c5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

illumos-utils/src/ipadm.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,14 @@ impl Ipadm {
201201
/// Set TCP recv_buf to 1 MB.
202202
pub fn set_tcp_recv_buf() -> Result<(), ExecutionError> {
203203
let mut cmd = std::process::Command::new(PFEXEC);
204+
205+
// This is to improve single-connection throughput on large uploads
206+
// from clients, e.g., images. Modern browsers will almost always use
207+
// HTTP/2, which will multiplex concurrent writes to the same host over
208+
// a single TCP connection. The small default receive window size is a
209+
// major bottleneck, see
210+
// https://github.com/oxidecomputer/console/issues/2096 for further
211+
// details.
204212
let cmd = cmd.args(&[
205213
IPADM,
206214
"set-prop",

0 commit comments

Comments
 (0)