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

This commit is contained in:
Guido van Rossum 1994-02-28 09:25:06 +00:00
parent 914973a0be
commit ea6f6ed80c

View file

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