Browse Source

Fix EAGAIN handling for freebsd sendfile (fixes #1913, thx AnMaster for spotting the problem)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2403 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.22
Stefan Bühler 13 years ago
parent
commit
950fbe58bd
  1. 1
      NEWS
  2. 4
      src/network_freebsd_sendfile.c

1
NEWS

@ -8,6 +8,7 @@ NEWS
* Fix default vhost in mod_simple_vhost (fixes #1905)
* Handle EINTR in mod_rrdtool (fixes #604)
* Fix rrd error after graceful restart (fixes #419)
* Fix EAGAIN handling for freebsd sendfile (fixes #1913, thx AnMaster for spotting the problem)
- 1.4.21 - 2009-02-16

4
src/network_freebsd_sendfile.c

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

Loading…
Cancel
Save