Kaydet (Commit) ea6f6ed8 authored tarafından Guido van Rossum's avatar Guido van Rossum

Change listen(0) to listen(1) for Solaris 2 sockets

üst 914973a0
......@@ -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:
......
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