Archives
Every essay, tool teardown, and build note, newest first.
-

Connection refused errno 111: reset or silence, and which retry
Connection refused (errno 111) is a reset, not a guess: the host is up and the port is closed, while a dropped SYN is silence and needs a different retry. 25 tests, measured on…
Read the article → -

Broken pipe errno 32: SIGPIPE, EPIPE, and the Bytes a Reader Leaves
A broken pipe returns EPIPE 32 at the first write that finds no reader: nothing accepted if the reader is already gone, and a buffer still in the pipe discarded when the reader leaves.…
Read the article → -

BlockingIOError Errno 11: 32,768 Bytes Stuck 2 s in a Shrunk Pair
A pair shrunk to 16 KiB after the handshake, with a peer that stops reading: one segment fills the buffer and a 1 KiB read frees nothing for 2 s.
Read the article → -

ConnectionResetError: 89% of a 1 MiB Reply Lost on Loopback at 20 ms
Linux loopback, a 1 MiB reply, a reader that starts 20 ms late: a close with the request unread lost 89% of the body – 112,960 bytes arrived.
Read the article → -

Too Many Open Files: the accept() Spin, the TIME_WAIT Pile, and the Descriptor Budget That Fixes Only the Spin
At a 64-descriptor limit one accept loop made 238,509 refused calls in half a second while its 64 clients waited, and served none of them.
Read the article →