summaryrefslogtreecommitdiff
path: root/Demo/sockets
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-02-28 09:25:38 +0000
committerGuido van Rossum <guido@python.org>1994-02-28 09:25:38 +0000
commit06b9605752c6a23016da01c71f4599ac70f9f872 (patch)
treede6698b814f06d67a56676d84221dcc9d8e61d91 /Demo/sockets
parent1f3e42047a67001719220a5a42fe0c5f51d2b740 (diff)
downloadcpython-06b9605752c6a23016da01c71f4599ac70f9f872.tar.gz
listen(0) -> listen(1)
Diffstat (limited to 'Demo/sockets')
-rwxr-xr-xDemo/sockets/ftp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sockets/ftp.py b/Demo/sockets/ftp.py
index f5bbdf504a..1b672d3fc9 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