Mercurial > cpython-lru_cache-weakref
diff Lib/SocketServer.py @ 10902:7e56d39d0741 legacy-trunk
Andy Dustman notes that I patched the close() call in the wrong place.
Here's the correct patch!
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 01 Jun 1999 18:58:34 +0000 |
| parents | a56379200077 |
| children | 87d3f91e44d4 |
line wrap: on
line diff
--- a/Lib/SocketServer.py Tue Jun 01 18:55:36 1999 +0000 +++ b/Lib/SocketServer.py Tue Jun 01 18:58:34 1999 +0000 @@ -300,11 +300,11 @@ # Child process. # This must never return, hence os._exit()! try: + self.socket.close() self.finish_request(request, client_address) os._exit(0) except: try: - self.socket.close() self.handle_error(request, client_address) finally:
