Mercurial > cpython-lru_cache-weakref
diff Doc/libsocket.tex @ 1567:dddcba2038bc legacy-trunk
adapt to min value of 1 for listen() backlog argument
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 02 Mar 1994 10:52:16 +0000 |
| parents | 550e2605958b |
| children | 2bcddc905da0 |
line wrap: on
line diff
--- a/Doc/libsocket.tex Mon Feb 28 09:31:19 1994 +0000 +++ b/Doc/libsocket.tex Wed Mar 02 10:52:16 1994 +0000 @@ -157,8 +157,8 @@ \begin{funcdesc}{listen}{backlog} Listen for connections made to the socket. -The argument (in the range 0-5) specifies the maximum number of -queued connections. +The argument specifies the maximum number of queued connections and +should be at least 1; the maximum value is system-dependent. \end{funcdesc} \begin{funcdesc}{makefile}{mode} @@ -234,7 +234,7 @@ PORT = 50007 # Arbitrary non-privileged server s = socket(AF_INET, SOCK_STREAM) s.bind(HOST, PORT) -s.listen(0) +s.listen(1) conn, addr = s.accept() print 'Connected by', addr while 1:
