Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 749908b

Browse files
committed
listen(0) -> listen(1)
1 parent ea6f6ed commit 749908b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Demo/sockets/ftp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def newdataport(s, f):
8080
nextport = (nextport+1) % 16
8181
r = socket(AF_INET, SOCK_STREAM)
8282
r.bind(gethostbyname(gethostname()), port)
83-
r.listen(0)
83+
r.listen(1)
8484
sendportcmd(s, f, port)
8585
return r
8686

0 commit comments

Comments
 (0)