swiftsocket / SwiftSocket

The easy way to use sockets on Apple platforms
BSD 3-Clause "New" or "Revised" License
1.68k stars 402 forks source link

Disabling SIGPIPE errors on UDP Client. #150

Closed keab42 closed 5 years ago

keab42 commented 6 years ago

I've been using this library in some production code, and my Bug logging software has been picking up a lot of SIGPIPE 13 errors from this library on sends.

It looks in part due to the socket unexpectedly closing on our side (I was keeping the connection open for far too long), but given that the code has inbuilt error checking on the SendTo operation, it should be safe to disable the SIGPIPE errors in this way.