From: Moshe Zadka Date: Wed, 13 Dec 2000 20:39:22 +0000 (+0000) Subject: Changing allow_reuse_address's default value, and documenting it. X-Git-Tag: v2.1a1~589 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd802208a739b96b7dea0d9533e34f6410b843ce;p=python Changing allow_reuse_address's default value, and documenting it. --- diff --git a/Doc/lib/libsocksvr.tex b/Doc/lib/libsocksvr.tex index 18a2fe8f8a..df53063d2b 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 a263f8ebb1..c7439ddb93 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."""