summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 f5bbdf5..1b672d3 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