Date: Tue, 25 Oct 2005 18:47:12 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/tools/tools/netrate/httpd httpd.c Message-ID: <200510251847.j9PIlCqn039606@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2005-10-25 18:47:12 UTC
FreeBSD src repository
Modified files:
tools/tools/netrate/httpd httpd.c
Log:
Updates and enhancements to the multi-threaded httpd performance test
tool:
- Use uname(3) to query the OS name to report in the HTTP headers.
This is probably more useful than hard-coding FreeBSD.
- If no path is specified, create a 1k temporary file and send that
instead. Pass a file descriptor into http_serve() rather than using
a global fd.
- Add more carriage returns to the HTTP headers to be a bit more
correct. (Suggested by: andre)
- Read to a buffer rather than a single character to reduce the number
of recv() system calls pulling in the HTTP request.
- Properly wait for two, not one, \n's on input.
Revision Changes Path
1.4 +92 -33 src/tools/tools/netrate/httpd/httpd.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510251847.j9PIlCqn039606>
