I ran into this very same issue with NWConnection. What fixed it for me is making sure connection.cancel() is called before we throw away a connection!
Presumably NWConnection a high-level object and it's lifetime isn't intrinsically tied to however the kernel manages connections. Ensuring cancel() is called resolved my issues.
Topic:
App & System Services
SubTopic:
Networking
Tags: