mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-30 04:57:54 -06:00
`backpressure` stopped writing at the first WouldBlock. On macOS the accepted stream does not keep the listener's 4 KiB receive buffer (it gets about 114 KiB), so that WouldBlock only meant the 4 KiB send buffer was full; it drained into the peer, and the 64 KiB write in a_write_to_a_peer_that_stops_reading_fails_after_the_timeout and a_blocked_socket_doesnt_hold_up_the_others_and_close_interrupts_it then succeeded instead of blocking. Both tests failed on every run. The helper now stops only after writes have stayed blocked for 200 ms, still within its 16 MiB and 5 s limits. The socket code is unchanged.