c7d40ef296
- 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.
This is the new fetch(3) library, which is to replace the ftpio(3) library and provide a new, unified backend for all fetch(1), pkg_add(1) and sysinstall(8). Note that this is very much work in progress. It compiles (with a few warnings), but there is much left to be implemented. Comments, patches etc. of all kinds are welcome, but please don't commit anything without talking to me first. -- Dag-Erling C. Smørgrav (des@FreeBSD.org)