Adjust the read/write watermarks according to the TCP send buffer.
authorreyk <reyk@openbsd.org>
Wed, 6 Aug 2014 09:36:31 +0000 (09:36 +0000)
committerreyk <reyk@openbsd.org>
Wed, 6 Aug 2014 09:36:31 +0000 (09:36 +0000)
commit720c14e513bba2c96fd407d06b2b9afd59feb651
treed0e9cbd478230ff05b5ae975da6d56df01796712
parentdf9b638b94ced3caa6c20156452643471d8a076a
Adjust the read/write watermarks according to the TCP send buffer.
This fixes sending of large files.  Previously, httpd was reading the
input file too quickly and could run out of memory when filling the
input buffer.

Found by jsg@
OK florian@
usr.sbin/httpd/httpd.h
usr.sbin/httpd/server.c
usr.sbin/httpd/server_file.c