mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Change listen(0) to listen(1) for Solaris 2 sockets
This commit is contained in:
parent
914973a0be
commit
ea6f6ed80c
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ def main():
|
|||
port = ECHO_PORT
|
||||
s = socket(AF_INET, SOCK_STREAM)
|
||||
s.bind('', port)
|
||||
s.listen(0)
|
||||
s.listen(1)
|
||||
conn, (remotehost, remoteport) = s.accept()
|
||||
print 'connected by', remotehost, remoteport
|
||||
while 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue