]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backout 8b384de4e780, so a proper fix can be considered (#5715)
authorBenjamin Peterson <benjamin@python.org>
Tue, 24 May 2011 17:50:34 +0000 (12:50 -0500)
committerBenjamin Peterson <benjamin@python.org>
Tue, 24 May 2011 17:50:34 +0000 (12:50 -0500)
Lib/socketserver.py

index c53ac2971f00154a396f812c8559a2717b095244..e7faf884ef72f1fff003c10f196860e173af3590 100644 (file)
@@ -534,12 +534,10 @@ class ForkingMixIn:
             # This must never return, hence os._exit()!
             try:
                 self.finish_request(request, client_address)
-                self.socket.close()
                 os._exit(0)
             except:
                 try:
                     self.handle_error(request, client_address)
-                    self.socket.close()
                 finally:
                     os._exit(1)