Andre Oppermann 3e932ca715 In kern_sendfile() fix the calculation of sbytes (the total number of bytes
written to the socket).  The rewrite in revision 1.240 got confused by the
FreeBSD 4.x bug compatibility code.

For some reason lighttpd, that was used for testing the new sendfile code,
was not affected by the problem but apache and others using headers/trailers
in the sendfile call received incorrect sbytes values after return from non-
blocking sockets.  This then lead to restarts with wrong offsets and thus
mixed up file contents when the socket was writeable again.  All programs
not using headers/trailers, like ftpd, were not affected by the bug.

Reported by:	Pawel Worach <pawel.worach-at-gmail.com>
Tested by:	Pawel Worach <pawel.worach-at-gmail.com>
2006-11-12 20:57:00 +00:00
..
2006-11-11 21:49:08 +00:00
2006-11-11 20:57:52 +00:00
2006-11-09 20:45:22 +00:00
2006-11-11 21:49:08 +00:00
2006-05-26 13:54:27 +00:00
2006-11-02 16:24:18 +00:00
2006-11-06 17:43:10 +00:00
2006-11-11 15:02:04 +00:00
2006-11-09 08:03:37 +00:00