why lighttpd complain "sendfile: Broken pipe 32 "

Stefan Lambrev stefan.lambrev at moneybookers.com
Wed Dec 12 05:58:48 PST 2007


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 at web:/usr/src/sys/i386/compile/WEB  i386
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
>   

-- 

Best Wishes,
Stefan Lambrev
ICQ# 24134177



More information about the freebsd-stable mailing list