diff --git a/mitogen/unix.py b/mitogen/unix.py index 683a07f5..c9136e60 100644 --- a/mitogen/unix.py +++ b/mitogen/unix.py @@ -78,6 +78,7 @@ class Listener(mitogen.core.BasicStream): def on_receive(self, broker): sock, _ = self._sock.accept() + sock.setblocking(True) pid, = struct.unpack('>L', sock.recv(4)) context_id = self._router.id_allocator.allocate()