Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2007 15:58:43 +0200
From:      Stefan Lambrev <stefan.lambrev@moneybookers.com>
To:        Ken Chen <ken73.chen@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: why lighttpd complain "sendfile: Broken pipe 32 "
Message-ID:  <475FE913.4070808@moneybookers.com>
In-Reply-To: <d018a9bd0712120524j4d1ed6beu604b049ace2b3f7a@mail.gmail.com>
References:  <d018a9bd0712120524j4d1ed6beu604b049ace2b3f7a@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?475FE913.4070808>