listen(0) -> listen(1)

This commit is contained in:
Guido van Rossum 1994-02-28 09:25:38 +00:00
parent ea6f6ed80c
commit 749908b9b6

View File

@ -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