]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change listen(0) to listen(1) for Solaris 2 sockets
authorGuido van Rossum <guido@python.org>
Mon, 28 Feb 1994 09:25:06 +0000 (09:25 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 28 Feb 1994 09:25:06 +0000 (09:25 +0000)
Demo/sockets/echosvr.py

index d4a23f04a815a2ebbc19906de04eb63d3874d073..fbe3eb77d4ded1c8ac3789cca13c2370804fe4ca 100755 (executable)
@@ -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: