]> granicus.if.org Git - python/commitdiff
Andy Dustman notes that I patched the close() call in the wrong place.
authorGuido van Rossum <guido@python.org>
Tue, 1 Jun 1999 18:58:34 +0000 (18:58 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 1 Jun 1999 18:58:34 +0000 (18:58 +0000)
Here's the correct patch!

Lib/SocketServer.py

index d8081efbe0154de41b72564ac1a3b0f2f0ee0a11..fe1402e0b270524584a232a284341bf375f1ca2a 100644 (file)
@@ -300,11 +300,11 @@ class ForkingMixIn:
             # 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: