Commit dd802208 authored by Moshe Zadka's avatar Moshe Zadka

Changing allow_reuse_address's default value, and documenting it.

parent a63bd1c6
...@@ -94,6 +94,11 @@ The socket object on which the server will listen for incoming requests. ...@@ -94,6 +94,11 @@ The socket object on which the server will listen for incoming requests.
The server classes support the following class variables: 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} \begin{datadesc}{request_queue_size}
The size of the request queue. If it takes a long time to process a 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 single request, any requests that arrive while the server is busy are
......
...@@ -157,7 +157,7 @@ class TCPServer: ...@@ -157,7 +157,7 @@ class TCPServer:
request_queue_size = 5 request_queue_size = 5
allow_reuse_address = 0 allow_reuse_address = 1
def __init__(self, server_address, RequestHandlerClass): def __init__(self, server_address, RequestHandlerClass):
"""Constructor. May be extended, do not override.""" """Constructor. May be extended, do not override."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment