mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
listen(0) -> listen(1)
This commit is contained in:
parent
ea6f6ed80c
commit
749908b9b6
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user