From 749908b9b6646216eacab2b542d0557a9fd36598 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 28 Feb 1994 09:25:38 +0000 Subject: [PATCH] listen(0) -> listen(1) --- Demo/sockets/ftp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/sockets/ftp.py b/Demo/sockets/ftp.py index f5bbdf504a4..1b672d3fc90 100755 --- a/Demo/sockets/ftp.py +++ b/Demo/sockets/ftp.py @@ -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