Treat EPIPE as connection-closed error in network_freebsd_sendfile.c (another fix from #1913)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2405 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.22
Stefan Bühler 2009-02-28 21:38:50 +00:00
parent a7ecb6b93a
commit 7883b7f2ff
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -10,6 +10,7 @@ NEWS
* Fix rrd error after graceful restart (fixes #419)
* Fix EAGAIN handling for freebsd sendfile (fixes #1913, thx AnMaster for spotting the problem)
* Fix segfault in mod_scgi (fixes #1911)
* Treat EPIPE as connection-closed error in network_freebsd_sendfile.c (another fix from #1913)
- 1.4.21 - 2009-02-16

View File

@ -167,8 +167,9 @@ int network_write_chunkqueue_freebsdsendfile(server *srv, connection *con, int f
switch(errno) {
case EAGAIN:
case EINTR:
/* for EAGAIN r still contains the sent bytes */
/* for EAGAIN/EINTR r still contains the sent bytes */
break; /* try again later */
case EPIPE:
case ENOTCONN:
return -2;
default: