sendfile() without struct sf_hdtr broken since rev 1.256

From: Marcus Alves Grand <mnag_at_FreeBSD.org>
Date: Sat, 22 Sep 2007 01:03:07 -0300
People,

Since rev 1.256 sendfile broken lighttpd sendfile() that doesn´t use 
struct sf_hdtr.

Sometimes sendfile works sometimes not like you can see below:

-------
# wget -O /dev/null http://another.host/30M
--00:58:22--  http://another.host/30M
            => `/dev/null'
Resolving another.host... X.X.X.X
Connecting to another.host|X.X.X.X|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31,457,280 (30M) [text/plain]

100%[====================================================================================================>] 
31,457,280    10.60M/s

00:58:25 (10.59 MB/s) - `/dev/null' saved [31457280/31457280]

# wget -O /dev/null http://another.host/30M
--00:58:26--  http://another.host/30M
            => `/dev/null'
Resolving another.host... X.X.X.X
Connecting to another.host|X.X.X.X|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31,457,280 (30M) [text/plain]

  1% [> 
                                    ] 409,600       --.--K/s

00:58:26 (5.51 MB/s) - Connection closed at byte 409600. Retrying.

--00:58:27--  http://another.host/30M
   (try: 2) => `/dev/null'
Connecting to another.host|X.X.X.X|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 31,457,280 (30M), 31,047,680 (30M) remaining [text/plain]

  2% [+> 
                                    ] 774,144       --.--K/s

00:58:27 (4.27 MB/s) - Connection closed at byte 774144. Retrying.
------

rev 1.256: 
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/uipc_syscalls.c.diff?r1=1.255;r2=1.256

Regards
Received on Sat Sep 22 2007 - 02:22:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:18 UTC