mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-19 17:12:19 +01:00
Closing a socket with unread input resets the connection, and on macOS the reset can discard the refusal before the client reads it (the oversized-line test failed on the macOS gate). The port now stops writing, drains what the client is still sending (bounded: 8 MiB, 2 s), then closes.