]> granicus.if.org Git - python/commitdiff
Changing allow_reuse_address's default value, and documenting it.
authorMoshe Zadka <moshez@math.huji.ac.il>
Wed, 13 Dec 2000 20:39:22 +0000 (20:39 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Wed, 13 Dec 2000 20:39:22 +0000 (20:39 +0000)
Doc/lib/libsocksvr.tex
Lib/SocketServer.py

index 18a2fe8f8a575340e7e844c43981eb91ebe5782b..df53063d2ba8c14b4161c47719d1f15f0c1b89a0 100644 (file)
@@ -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
index a263f8ebb1376de77995a22286e9952acc5acd8b..c7439ddb93e3f2a7854d6961142cce2d7e76293a 100644 (file)
@@ -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."""