ignore remove-close in freebsd sendfile()

git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@90 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/release-1.3.13
Jan Kneschke 18 years ago
parent 9d057a63cb
commit 6b297b3341
  1. 7
      src/network_freebsd_sendfile.c

@ -156,7 +156,12 @@ int network_write_chunkqueue_freebsdsendfile(server *srv, connection *con, chunk
/* FreeBSD sendfile() */
if (-1 == sendfile(con->fce->fd, fd, offset, toSend, NULL, &r, 0)) {
if (errno != EAGAIN) {
switch(errno) {
case EAGAIN:
break;
case ENOTCONN:
return -2;
default:
log_error_write(srv, __FILE__, __LINE__, "ssd", "sendfile: ", strerror(errno), errno);
return -1;

Loading…
Cancel
Save