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
41a57506
Commit
41a57506
authored
Jun 28, 2009
by
Kristján Valur Jónsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http://bugs.python.org/issue6192
Mergin revisions 73272 and 73546 to py3k
parent
8f480e54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
Lib/socketserver.py
Lib/socketserver.py
+7
-0
No files found.
Lib/socketserver.py
View file @
41a57506
...
@@ -646,8 +646,15 @@ class StreamRequestHandler(BaseRequestHandler):
...
@@ -646,8 +646,15 @@ class StreamRequestHandler(BaseRequestHandler):
rbufsize
=
-
1
rbufsize
=
-
1
wbufsize
=
0
wbufsize
=
0
# Disable nagle algoritm for this socket, if True.
# Use only when wbufsize != 0, to avoid small packets.
disable_nagle_algorithm
=
False
def
setup
(
self
):
def
setup
(
self
):
self
.
connection
=
self
.
request
self
.
connection
=
self
.
request
if
self
.
disable_nagle_algorithm
:
self
.
connection
.
setsockopt
(
socket
.
IPPROTO_TCP
,
socket
.
TCP_NODELAY
,
True
)
self
.
rfile
=
self
.
connection
.
makefile
(
'rb'
,
self
.
rbufsize
)
self
.
rfile
=
self
.
connection
.
makefile
(
'rb'
,
self
.
rbufsize
)
self
.
wfile
=
self
.
connection
.
makefile
(
'wb'
,
self
.
wbufsize
)
self
.
wfile
=
self
.
connection
.
makefile
(
'wb'
,
self
.
wbufsize
)
...
...
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