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.
G
Guido van Rossum committed
e5e50591a477f90203219898e02a603ba6a9d71b
Parent: 241d69c
This breaks software that excepts a socket.error but not an AttributeError.