diff options
| author | Chris McDonough <chrism@plope.com> | 2012-01-09 04:54:38 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-01-09 04:54:38 -0500 |
| commit | 0e40df2b3a3794178b276d67df4dcb98ff57c03c (patch) | |
| tree | 589d94126f66f547009960545e7c8a4199fcfa21 /docs/arguments.rst | |
| parent | e734fadcf293866e23446453bfa7dd4f4c499624 (diff) | |
| download | waitress-0e40df2b3a3794178b276d67df4dcb98ff57c03c.tar.gz | |
- Default ``send_bytes`` value is now 18000 instead of 9000. The larger
default value prevents asyncore from needing to execute select so many
times to serve large files, speeding up file serving by about 15%-20% or
so. This is probably only an optimization for LAN communications, and
could slow things down across a WAN (due to higher TCP overhead), but we're
likely to be behind a reverse proxy on a LAN anyway if in production.
- Added an (undocumented) profiling feature to the ``serve()`` command.
Diffstat (limited to 'docs/arguments.rst')
| -rw-r--r-- | docs/arguments.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/arguments.rst b/docs/arguments.rst index b381565..94de830 100644 --- a/docs/arguments.rst +++ b/docs/arguments.rst @@ -39,7 +39,7 @@ recv_bytes send_bytes send_bytes is the number of bytes to send to socket.send() (integer), - default ``9000``. Multiples of 9000 should avoid partly-filled TCP + default ``18000``. Multiples of 9000 should avoid partly-filled TCP packets, but don't set this larger than the TCP write buffer size. In Linux, /proc/sys/net/ipv4/tcp_wmem controls the minimum, default, and maximum sizes of TCP write buffers. |
