Fixing the select/accept loop.

This commit is contained in:
Paul J. Davis 2009-12-04 05:08:44 -05:00
parent 83ebc51520
commit d5956ed5f3

View File

@ -43,7 +43,7 @@ class Worker(object):
(conn, addr) = self.socket.accept()
except socket.error, e:
if e[0] in [errno.EAGAIN, errno.EINTR]:
continue # Jump back to select
break # Jump back to select
raise # Uh oh!
#log.info("Client connected: %s:%s" % addr)