From dd802208a739b96b7dea0d9533e34f6410b843ce Mon Sep 17 00:00:00 2001 From: Moshe Zadka Date: Wed, 13 Dec 2000 20:39:22 +0000 Subject: Changing allow_reuse_address's default value, and documenting it. --- Doc/lib/libsocksvr.tex | 5 +++++ Lib/SocketServer.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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.""" -- cgit v0.12