Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
dd802208
Commit
dd802208
authored
Dec 13, 2000
by
Moshe Zadka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing allow_reuse_address's default value, and documenting it.
parent
a63bd1c6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Doc/lib/libsocksvr.tex
Doc/lib/libsocksvr.tex
+5
-0
Lib/SocketServer.py
Lib/SocketServer.py
+1
-1
No files found.
Doc/lib/libsocksvr.tex
View file @
dd802208
...
@@ -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
...
...
Lib/SocketServer.py
View file @
dd802208
...
@@ -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."""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment