diff options
author | Guido van Rossum <guido@python.org> | 1994-02-28 09:25:38 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-02-28 09:25:38 +0000 |
commit | 749908b9b6646216eacab2b542d0557a9fd36598 (patch) | |
tree | 1d1f299d9962704f98293acd2a784c9d95025f77 /Demo/sockets | |
parent | ea6f6ed80c08eeeb467952d4672de12d84064593 (diff) | |
download | cpython-git-749908b9b6646216eacab2b542d0557a9fd36598.tar.gz |
listen(0) -> listen(1)
Diffstat (limited to 'Demo/sockets')
-rwxr-xr-x | Demo/sockets/ftp.py | 2 |
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 |