diff options
author | Guido van Rossum <guido@python.org> | 1994-02-28 09:25:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-02-28 09:25:06 (GMT) |
commit | ea6f6ed80c08eeeb467952d4672de12d84064593 (patch) | |
tree | 09db90c6e553b6c356a4673d07247ae67e14689b | |
parent | 914973a0be23164a936cbdd1c1a3e67c82a13500 (diff) | |
download | cpython-ea6f6ed80c08eeeb467952d4672de12d84064593.zip cpython-ea6f6ed80c08eeeb467952d4672de12d84064593.tar.gz cpython-ea6f6ed80c08eeeb467952d4672de12d84064593.tar.bz2 |
Change listen(0) to listen(1) for Solaris 2 sockets
-rwxr-xr-x | Demo/sockets/echosvr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sockets/echosvr.py b/Demo/sockets/echosvr.py index d4a23f0..fbe3eb7 100755 --- a/Demo/sockets/echosvr.py +++ b/Demo/sockets/echosvr.py @@ -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: |