From owner-freebsd-stable@FreeBSD.ORG Wed Dec 12 13:58:48 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC90C16A41B for ; Wed, 12 Dec 2007 13:58:48 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id 7181813C4D3 for ; Wed, 12 Dec 2007 13:58:48 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id D5D4A1B10E0D; Wed, 12 Dec 2007 14:58:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on blah.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.6 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id B62561B10C26; Wed, 12 Dec 2007 14:58:43 +0100 (CET) Message-ID: <475FE913.4070808@moneybookers.com> Date: Wed, 12 Dec 2007 15:58:43 +0200 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.9 (X11/20071120) MIME-Version: 1.0 To: Ken Chen References: In-Reply-To: Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/5099/Wed Dec 12 08:17:10 2007 on blah.cmotd.com X-Virus-Status: Clean Cc: freebsd-stable@freebsd.org Subject: Re: why lighttpd complain "sendfile: Broken pipe 32 " X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2007 13:58:48 -0000 Hi Ken, Ken Chen wrote: > What causes this happen? > > 2007-12-12 21:17:47: (network_freebsd_sendfile.c.173) sendfile: Broken pipe > 32 > 2007-12-12 21:17:47: (connections.c.603) connection closed: write failed on > fd 149 > 2007-12-12 21:19:19: (network_freebsd_sendfile.c.173) sendfile: Broken pipe > 32 > 2007-12-12 21:19:19: (connections.c.603) connection closed: write failed on > fd 476 > 2007-12-12 21:19:19: (network_freebsd_sendfile.c.173) sendfile: Broken pipe > 32 > 2007-12-12 21:19:19: (connections.c.603) connection closed: write failed on > fd 476 > 2007-12-12 21:20:30: (network_freebsd_sendfile.c.173) sendfile: Broken pipe > 32 > 2007-12-12 21:20:30: (connections.c.603) connection closed: write failed on > fd 158 > 2007-12-12 21:20:30: (network_freebsd_sendfile.c.173) sendfile: Broken pipe > 32 > 2007-12-12 21:20:30: (connections.c.603) connection closed: write failed on > fd 158 > This is probably because the client closed the connection before the server send all data - so broken pipe. > web# sysctl -a | grep maxfiles > kern.maxfiles: 32768 > kern.maxfilesperproc: 32768 > web# netstat -m > 2126/1654/3780 mbufs in use (current/cache/total) > 793/495/1288/25600 mbuf clusters in use (current/cache/total/max) > 855/2538/6656 sfbufs in use (current/peak/max) > 2117K/1403K/3521K bytes allocated to network (current/cache/total) > 0 requests for sfbufs denied > 0 requests for sfbufs delayed > 273045 requests for I/O initiated by sendfile > 325 calls to protocol drain routines > > web# uname -a > FreeBSD web 6.0-RELEASE FreeBSD 6.0-RELEASE #4: Tue Dec 11 18:30:27 CST > 2007 root@web:/usr/src/sys/i386/compile/WEB i386 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Best Wishes, Stefan Lambrev ICQ# 24134177