Added a special error message for timeout, since it does not set an error code when a timeout occurs. Also added a message when the socket is not writeable after successful connection.
Added a special error message for timeout, since it does not set an error code when a timeout occurs. Also added a message when the socket is not writeable after successful connection.