From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 3 04:08:12 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 535B716A4CE; Sat, 3 Jan 2004 04:08:12 -0800 (PST) Received: from dglawrence.com (12-224-163-157.client.attbi.com [12.224.163.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C4D843D46; Sat, 3 Jan 2004 04:08:10 -0800 (PST) (envelope-from dg@nexus.dglawrence.com) Received: from nexus.dglawrence.com (localhost [127.0.0.1]) by dglawrence.com (8.12.10/8.12.6) with ESMTP id i03C8Bkk019225; Sat, 3 Jan 2004 04:08:11 -0800 (PST) (envelope-from dg@nexus.dglawrence.com) Received: (from dg@localhost) by nexus.dglawrence.com (8.12.10/8.12.3/Submit) id i03C8Bpf019224; Sat, 3 Jan 2004 04:08:11 -0800 (PST) Date: Sat, 3 Jan 2004 04:08:11 -0800 From: "David G. Lawrence" To: Alfred Perlstein Message-ID: <20040103120811.GW56722@nexus.dglawrence.com> References: <20040103005338.GU9623@elvis.mu.org> <20040103054115.GV56722@nexus.dglawrence.com> <20040103060156.GV9623@elvis.mu.org> <20040103085515.GR213@nexus.dglawrence.com> <20040103115542.GW9623@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040103115542.GW9623@elvis.mu.org> X-Mailman-Approved-At: Sat, 03 Jan 2004 04:57:57 -0800 cc: hackers@freebsd.org Subject: Re: [PATCH] sendfile erroniously returns ENOTCONN. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2004 12:08:12 -0000 > > Yes, I think checking for SS_CATSENDMORE (and returning EPIPE) prior to > > checking SS_ISCONNECTED (and returning ENOTCONN as it does now) is the right > > thing to do. > > Last question (I hope)... :) > > Why not call sosend? sosend is the primary mechanism that write(8) uses to send data on a socket. sendfile(8) is an alternative to write(8)/sosend(). Although they both have similar purposes (sending data on a socket), they accomplish this in very different ways. -DG David G. Lawrence President Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500 TeraSolutions, Inc. - http://www.terasolutions.com - (888) 346 7175 The FreeBSD Project - http://www.freebsd.org Pave the road of life with opportunities.