]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
listen(0) -> listen(1)
authorGuido van Rossum <guido@python.org>
Mon, 28 Feb 1994 09:25:38 +0000 (09:25 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 28 Feb 1994 09:25:38 +0000 (09:25 +0000)
Demo/sockets/ftp.py

index f5bbdf504a4fe07cb98f62b5c07191650b6273d7..1b672d3fc906c3aff05e9bfb613f3bd76d1ebdd4 100755 (executable)
@@ -80,7 +80,7 @@ def newdataport(s, f):
        nextport = (nextport+1) % 16
        r = socket(AF_INET, SOCK_STREAM)
        r.bind(gethostbyname(gethostname()), port)
-       r.listen(0)
+       r.listen(1)
        sendportcmd(s, f, port)
        return r