zorael / kameloso

IRC bot with Twitch support
Boost Software License 1.0
9 stars 3 forks source link

errno #107

Closed zorael closed 3 years ago

zorael commented 3 years ago

This changes how we detect failures when reading from the socket, from comparing highly locale-specific English-only error message strings to the considerably more generic Posix errno and Windows WSAGetLastError. Similarly EAI_* values when resolving the IP address.

https://en.wikipedia.org/wiki/Errno.h

Reproducing previous errors proved difficult so there may be edge cases where it previously took an exception in stride and now errors out instead. Regrettable, this close to 2.0.0, but this is an important change.