cvs commit: src/tools/tools/netrate/httpd httpd.c

Robert Watson rwatson at FreeBSD.org
Tue Oct 25 11:47:13 PDT 2005


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


More information about the cvs-src mailing list