Commit 06b96057 authored by Guido van Rossum's avatar Guido van Rossum

listen(0) -> listen(1)

parent 1f3e4204
...@@ -80,7 +80,7 @@ def newdataport(s, f): ...@@ -80,7 +80,7 @@ def newdataport(s, f):
nextport = (nextport+1) % 16 nextport = (nextport+1) % 16
r = socket(AF_INET, SOCK_STREAM) r = socket(AF_INET, SOCK_STREAM)
r.bind(gethostbyname(gethostname()), port) r.bind(gethostbyname(gethostname()), port)
r.listen(0) r.listen(1)
sendportcmd(s, f, port) sendportcmd(s, f, port)
return r return r
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment