Commit bf617c7b authored by Ralf Schmitt's avatar Ralf Schmitt

pywsgi.py: close the client socket after having handled all requests. do not...

pywsgi.py: close the client socket after having handled all requests. do not rely on garbage collection.

--HG--
extra : transplant_source : %16%97YHJ%7F%9Dt%9Cj%92%FB%5B%17%C3%13%8B%E9Y%5C
parent aac6c00c
......@@ -173,6 +173,8 @@ class WSGIHandler(object):
self.log_request()
break
finally:
self.socket._sock.close() # do not rely on garbage collection
self.socket.close()
self.__dict__.pop('socket', None)
self.__dict__.pop('rfile', None)
self.__dict__.pop('wfile', None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment