From: Mariusz Mazur Date: Tue, 11 Jan 2005 18:17:29 +0000 (+0000) Subject: - blah; I'm retarded; of course server side sockets should be non-blocking X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=235da16e702cf331febec3fd2fd3fc00189f0a97;p=projects%2Fpld-ftp-admin.git - blah; I'm retarded; of course server side sockets should be non-blocking Changed files: modules/cons.py -> 1.5 --- diff --git a/modules/cons.py b/modules/cons.py index 00499c7..6fc02f2 100644 --- a/modules/cons.py +++ b/modules/cons.py @@ -9,6 +9,7 @@ import cmds class Connection: def __init__(self, sock, authorized): + sock.setblocking(False) self.sock=sock self.authorized=authorized self.fileno=sock.fileno