mirror of
https://github.com/apple/swift-nio
synced 2026-11-26 04:57:49 +00:00
### Motivation: At the moment half-closes are actioned immediately and fails all outstanding writes. We should refuse new writes but allow these writes to complete before completing the close. ### Modifications: Modify the PendingWritesManager internal buffer to hold an enum of either writes or close events. We use this to store the close and only action it when the preceding writes have been handled. ### Result: Outbound close should no longer fail outstanding writes Should resolve https://github.com/apple/swift-nio/issues/3139