From owner-cvs-all Sun Oct 22 5: 7:31 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0FEA337B479; Sun, 22 Oct 2000 05:07:29 -0700 (PDT) Received: (from des@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA77931; Sun, 22 Oct 2000 05:07:29 -0700 (PDT) (envelope-from des@FreeBSD.org) Message-Id: <200010221207.FAA77931@freefall.freebsd.org> From: Dag-Erling Smorgrav Date: Sun, 22 Oct 2000 05:07:28 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libfetch ftp.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG des 2000/10/22 05:07:28 PDT Modified files: lib/libfetch ftp.c Log: Use funopen() instead of fdopen(). This fixes three problems: - ftpTimeout was not honored when reading actual data, as opposed to talking protocol - connection caching was broken because _ftp_cached_connect() would see the result of the transfer instead of the result of the NOOP. - if the RETR succeeded, but an error occurred later (as can happen when talking to a proxy), the error would not be detected. There still remains to register an atexit(3) callback to close the cached connection gracefully instead of just dropping it on the floor. Revision Changes Path 1.45 +119 -5 src/lib/libfetch/ftp.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message