mirror of
https://github.com/apple/swift-nio
synced 2026-11-26 04:57:49 +00:00
Motivation: We have one case in the code where we expect a socket error to be set when we hit a connection that got the `.reset` event. On Linux that's expected and therefore we just map this to `ECONNRESET`. On other platforms however that is unexpected. Now I just found an [Envoy commit](https://github.com/envoyproxy/envoy/commit/62f8e51bdd2d72cbac739087dabd3f51bdfc5cbd#diff-3315c7b2 91f78a482ebd4cbfc0545362R345) which suggests this might not work on FreeBSD. This should prompt our users to let us know if we ever see this error on non-Linux systems. Modifications: Add a message that makes it clear this is unexpected and link our ticket. Result: we should learn if this actually happens on macOS. Motivation: Explain here the context, and why you're making that change. What is the problem you're trying to solve. Modifications: Describe the modifications you've done. Result: After your change, what will change.