mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
Motivation: We should not close the DatagramChannel when recvfrom fails with ECONNREFUSED / ENOMEM. The former may be caused by a previous sendto and the other may be recoverable by just stop reading for some time. Modifications: - Special handle ECONNREFUSED and ENOMEN to not close the channel. - Add unit tests Result: More robust datagram support.