From: Fredrik Tolf Date: Fri, 18 Jan 2013 22:16:35 +0000 (+0100) Subject: Set non-blocking mode on server sockets, for Jython's sake. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=74b7a2610c6faa469f054076a73137532ee45a1d;p=pdm.git Set non-blocking mode on server sockets, for Jython's sake. --- diff --git a/pdm/srv.py b/pdm/srv.py index 8eb11f5..9b8d77b 100644 --- a/pdm/srv.py +++ b/pdm/srv.py @@ -465,6 +465,7 @@ class unixlistener(listener): if self.group is not None: os.chown(self.name, os.getuid(), grp.getgrnam(self.group).gr_gid) sk.listen(16) + sk.setblocking(False) self.listen(sk) finally: sk.close() @@ -487,6 +488,7 @@ class tcplistener(listener): try: sk.bind((self.bindaddr, self.port)) sk.listen(16) + sk.setblocking(False) self.listen(sk) finally: sk.close()