mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: To ensure we not leave any unread data on the socket we should try to read one last time (if autoread is enabled). Modifications: - Depending on if autoread is enabled or not we will try to read one more time - Guard against re-entry of flushNow0() - Correctly handle SIGPIPE in all cases - Add testcase Result: Drain data from socket on write error if needed.