[issue6192] add disable_nagle_algorithm to SocketServer.TCPServer

Kristján Valur Jónsson report at bugs.python.org
Thu Jun 4 12:32:42 CEST 2009


New submission from Kristján Valur Jónsson <kristjan at ccpgames.com>:

It is useful to be able to disable the Nagle algoritm on socket 
connections from the TCPServer.  These are typically used by HTTP servers.

If combined with write buffering (setting RequestHangler.wbufsize = -1) it  
can make sure that http responses are not subject to Nagle/Delayed-ack 
delays.  Disabling Nagle in addition to providing the buffering is 
necessary to make sure that the final wfile.flush() arrives promptly, in 
case a previous flush occurred and the final flush is small.

A patch is provided.

----------
files: disable_nagle.patch
keywords: easy, patch, patch
messages: 88878
nosy: krisvale
severity: normal
status: open
title: add disable_nagle_algorithm to SocketServer.TCPServer
type: feature request
versions: Python 2.7
Added file: http://bugs.python.org/file14185/disable_nagle.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6192>
_______________________________________


More information about the Python-bugs-list mailing list