Date: Wed, 30 Oct 2002 04:32:33 +0100 From: Dag-Erling Smorgrav <des@ofug.org> To: Bill Fenner <fenner@research.att.com> Cc: jhb@FreeBSD.org, obrien@FreeBSD.org, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/lib/libfetch common.c Message-ID: <xzpznsw4n5a.fsf@flood.ping.uio.no> In-Reply-To: <200210291758.JAA06540@windsor.research.att.com> (Bill Fenner's message of "Tue, 29 Oct 2002 09:58:41 -0800") References: <200210291758.JAA06540@windsor.research.att.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Bill Fenner <fenner@research.att.com> writes: > I don't understand why _fetch_read() is never supposed to return > zero. _fetch_read() *has* to return zero to stdio to indicate > EOF. Because in my mental reckoning I stupidly left out the simplest (increasingly infrequent but still common) case of an FTP transfer, or an unchunked HTTP transfer, of a file whose size is not known in advance. In all other cases, a 0-length read indicates a dropped connection. I failed to allow for the case where it doesn't. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpznsw4n5a.fsf>