When the socket is closed, don't just assign 0 to self._sock.
This breaks software that excepts a socket.error but not an AttributeError.
Showing
Please register or sign in to comment
This breaks software that excepts a socket.error but not an AttributeError.