From owner-cvs-all@FreeBSD.ORG Tue Oct 25 18:47:12 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D505616A441; Tue, 25 Oct 2005 18:47:12 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F7AB43D48; Tue, 25 Oct 2005 18:47:12 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9PIlCfD039607; Tue, 25 Oct 2005 18:47:12 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9PIlCqn039606; Tue, 25 Oct 2005 18:47:12 GMT (envelope-from rwatson) Message-Id: <200510251847.j9PIlCqn039606@repoman.freebsd.org> From: Robert Watson Date: Tue, 25 Oct 2005 18:47:12 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/tools/tools/netrate/httpd httpd.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2005 18:47:13 -0000 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