Initialize the error to SocketError::NoError in case of success. Otherwise, the error wasn't initialized in the success path for the socket poller, and it was reaching an unknown error because of that.