From owner-freebsd-current@FreeBSD.ORG Sat Sep 22 04:22:54 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3B2E16A46B; Sat, 22 Sep 2007 04:22:54 +0000 (UTC) (envelope-from mnag@FreeBSD.org) Received: from corp.grupos.com.br (corp.grupos.com.br [200.193.29.43]) by mx1.freebsd.org (Postfix) with ESMTP id 91FA013C49D; Sat, 22 Sep 2007 04:22:54 +0000 (UTC) (envelope-from mnag@FreeBSD.org) Received: from [192.168.20.100] (cm-net-poa-C8B0C830.dynamic.brdterra.com.br [200.176.200.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: marcus@corp.grupos.com.br) by corp.grupos.com.br (Postfix) with ESMTP id 7BA625CE7; Sat, 22 Sep 2007 01:03:11 -0300 (BRT) Message-ID: <46F493FB.6020603@FreeBSD.org> Date: Sat, 22 Sep 2007 01:03:07 -0300 From: Marcus Alves Grand User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: freebsd-current@freebsd.org, andre@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: sendfile() without struct sf_hdtr broken since rev 1.256 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Sep 2007 04:22:54 -0000 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