Unfuck MS connecting and error reporting
Port fix from Kart-Public
commit 4d739fe7a5bab34d9e6b7477cdb990841eae5643
Author: James R <justsomejames2@gmail.com>
Date: Fri Apr 26 12:59:21 2019 -0700
Unfuck MS connecting and error reporting
Reconnect if the socket is closed.
Report the proper error from SO_ERROR and report an error from getsockopt.