Implement file descriptor accounting. The concept was taken from
authorreyk <reyk@openbsd.org>
Wed, 16 Jul 2014 10:25:28 +0000 (10:25 +0000)
committerreyk <reyk@openbsd.org>
Wed, 16 Jul 2014 10:25:28 +0000 (10:25 +0000)
commit12312c27a52c7492151ec1a7c8da06ced905d71d
treec933081889aa798a503065f8bcf970dd5f52d0ca
parent90250b93f0ed89946b266efbd8fc58f122165b3a
Implement file descriptor accounting.  The concept was taken from
relayd but had to be adjusted for httpd.  It now handles single-pass
HTTP connections, persistent connections with multiple requests, and
body-less HEAD requests.  With input from benno@
usr.sbin/httpd/httpd.h
usr.sbin/httpd/server.c
usr.sbin/httpd/server_file.c
usr.sbin/httpd/server_http.c