diff options
author | Moshe Zadka <moshez@math.huji.ac.il> | 2000-12-13 20:39:22 (GMT) |
---|---|---|
committer | Moshe Zadka <moshez@math.huji.ac.il> | 2000-12-13 20:39:22 (GMT) |
commit | dd802208a739b96b7dea0d9533e34f6410b843ce (patch) | |
tree | 956dea53fca95caad7e630b67898e9a5af5f39c6 | |
parent | a63bd1c65be930fbc42d66fc88eabd22da800d21 (diff) | |
download | cpython-dd802208a739b96b7dea0d9533e34f6410b843ce.zip cpython-dd802208a739b96b7dea0d9533e34f6410b843ce.tar.gz cpython-dd802208a739b96b7dea0d9533e34f6410b843ce.tar.bz2 |
Changing allow_reuse_address's default value, and documenting it.
-rw-r--r-- | Doc/lib/libsocksvr.tex | 5 | ||||
-rw-r--r-- | Lib/SocketServer.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Doc/lib/libsocksvr.tex b/Doc/lib/libsocksvr.tex index 18a2fe8..df53063 100644 --- a/Doc/lib/libsocksvr.tex +++ b/Doc/lib/libsocksvr.tex @@ -94,6 +94,11 @@ The socket object on which the server will listen for incoming requests. The server classes support the following class variables: +\begin{datadesc}{allow_reuse_address} +Whether the server will allow the reuse of an address. This defaults +to true, and can be set in subclasses to change the policy. +\end{datadesc} + \begin{datadesc}{request_queue_size} The size of the request queue. If it takes a long time to process a single request, any requests that arrive while the server is busy are diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py index a263f8e..c7439dd 100644 --- a/Lib/SocketServer.py +++ b/Lib/SocketServer.py @@ -157,7 +157,7 @@ class TCPServer: request_queue_size = 5 - allow_reuse_address = 0 + allow_reuse_address = 1 def __init__(self, server_address, RequestHandlerClass): """Constructor. May be extended, do not override.""" |