mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Changing allow_reuse_address's default value, and documenting it.
This commit is contained in:
parent
a63bd1c65b
commit
dd802208a7
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue