Commit 4bc39732 authored by Denis Bilenko's avatar Denis Bilenko

fix gevent.server to release the reference to the socket. Thanks to Ralf Schmitt.

parent 2913fa16
......@@ -93,6 +93,7 @@ class StreamServer(Greenlet):
client_socket, address = self.socket.accept()
self.delay = self.min_delay
self.pool.spawn(self.handle, client_socket, address)
del client_socket, address
except socket.error, e:
if e[0] in FATAL_ERRORS:
self.log_message('ERROR: %s failed with %s' % (self, e))
......
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