diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2009-06-07 16:43:23 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2009-06-07 16:43:23 (GMT) |
commit | afefcfd4bff7a50ba9a5fdd2b1a355f133c4b956 (patch) | |
tree | f453467a64c3419d0af29374f2d0d94fd1ae0b5f /Doc | |
parent | e021c9cb27734bce1e03c9b4509b4c6a20590e1a (diff) | |
download | cpython-afefcfd4bff7a50ba9a5fdd2b1a355f133c4b956.zip cpython-afefcfd4bff7a50ba9a5fdd2b1a355f133c4b956.tar.gz cpython-afefcfd4bff7a50ba9a5fdd2b1a355f133c4b956.tar.bz2 |
http://bugs.python.org/issue6192
Add a feature to disable the Nagle algorithm on sockets in TCPServer
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/socketserver.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/socketserver.rst b/Doc/library/socketserver.rst index 078f216..bf93cce 100644 --- a/Doc/library/socketserver.rst +++ b/Doc/library/socketserver.rst @@ -223,6 +223,15 @@ The server classes support the following class variables: desired. If :meth:`handle_request` receives no incoming requests within the timeout period, the :meth:`handle_timeout` method is called. +.. attribute:: TCPServer.disable_nagle_algorithm + + If set to True, it will set the TCP_NODELAY attribute of new requests + connections. This can help alleviate problems with latency in + request-response type applications. To avoid sending many small packets, + this option should be used only when bufferning output, such as when + setting :attr:`StreamRequestHandler.wbufsize` attribute to -1. + + .. versionadded:: 2.7 There are various server methods that can be overridden by subclasses of base server classes like :class:`TCPServer`; these methods aren't useful to external |