From owner-freebsd-arch@FreeBSD.ORG Tue May 27 09:12:03 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AD0E37B401 for ; Tue, 27 May 2003 09:12:03 -0700 (PDT) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80BB143F75 for ; Tue, 27 May 2003 09:12:02 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-2ivfjqj.dialup.mindspring.com ([165.247.207.83] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19Kh3N-0003RV-00; Tue, 27 May 2003 09:11:57 -0700 Message-ID: <3ED38E06.3FC82F09@mindspring.com> Date: Tue, 27 May 2003 09:10:46 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Igor Sysoev References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a455a956b0f4a4b4333d25c75bbab9e2b0666fa475841a1c7a350badd9bab72f9c350badd9bab72f9c cc: arch@freebsd.org Subject: Re: sendfile(2) SF_NOPUSH flag proposal X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 16:12:03 -0000 Igor Sysoev wrote: > When there's the simple way to avoid the partially filled packets > I do not see any reason not to use it. So set a flag when you would have called tcp_output() in between the headers and file data, or the file data and the trailers, and, if you have to early return, and the flag is set, call it before your early return. Problem solved. -- Terry