Documentation
¶
Overview ¶
Package sendbuf fixes the kernel send buffer of a test server's connections. Linux grows a loopback connection's send buffer to several MiB and wakes a writer blocked on it only once about a third has drained, so without a fixed size how much of a response the kernel takes, and how soon a reading client lets a blocked write go on, depend on the host.
Index ¶
Constants ¶
View Source
const Size = 64 << 10
Size is the send buffer Listener sets: far below any test response, above one 32 KiB write.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.