Skip to content

Commit dd80220

Browse files
author
Moshe Zadka
committed
Changing allow_reuse_address's default value, and documenting it.
1 parent a63bd1c commit dd80220

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Doc/lib/libsocksvr.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ \section{\module{SocketServer} ---
9494

9595
The server classes support the following class variables:
9696

97+
\begin{datadesc}{allow_reuse_address}
98+
Whether the server will allow the reuse of an address. This defaults
99+
to true, and can be set in subclasses to change the policy.
100+
\end{datadesc}
101+
97102
\begin{datadesc}{request_queue_size}
98103
The size of the request queue. If it takes a long time to process a
99104
single request, any requests that arrive while the server is busy are

Lib/SocketServer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class TCPServer:
157157

158158
request_queue_size = 5
159159

160-
allow_reuse_address = 0
160+
allow_reuse_address = 1
161161

162162
def __init__(self, server_address, RequestHandlerClass):
163163
"""Constructor. May be extended, do not override."""

0 commit comments

Comments
 (0)