Browse Source

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 13 years ago
parent
commit
7883b7f2ff
  1. 1
      NEWS
  2. 3
      src/network_freebsd_sendfile.c

1
NEWS

@ -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

3
src/network_freebsd_sendfile.c

@ -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:

Loading…
Cancel
Save