freebsd-skq/lib/libfetch
njl 06c0d543e0 The FTP connection caching needs a better interface -- connections are
closed through _fetch_close() which is the only one who knows the connection
REALLY was closed (since ref -> 0).  However, FTP keeps its own local
cached_connection and checks if it is valid by comparing it to NULL.  This
is bogus since it may have been freed elsewhere by _fetch_close().

This change checks if we are closing the cached_connection and the ref is 1
(soon to be 0).  If so, set cached_connection to NULL so we don't
accidentally reuse it.  The REAL fix should be to move connection caching
to the common.c level (_fetch_* functions) and NULL the cache(s) in
_fetch_close().  Then all layers could benefit from caching.
2002-10-25 01:17:32 +00:00
..
common.c Fix an infinite loop when _fetch_read() can return 0 (if the 2002-09-20 21:50:57 +00:00
common.h Add a reference count to struct fetchconn so we don't prematurely close and 2002-06-11 11:27:28 +00:00
fetch.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
fetch.c Add SSL support + slight cleanup. 2002-06-05 12:46:36 +00:00
fetch.h Surround prototypes with __BEGIN_DECLS / __END_DECLS. 2002-07-22 16:11:39 +00:00
file.c Reindent, and add parentheses to return statements. Some functions in 2002-02-05 22:13:51 +00:00
ftp.c The FTP connection caching needs a better interface -- connections are 2002-10-25 01:17:32 +00:00
ftp.errors IPv6 support. 2000-05-20 18:23:51 +00:00
http.c HTTP authentication got broken in rev. 1.49. 2002-10-03 10:42:19 +00:00
http.errors Add some error codes that were added in RFC2616. 2001-05-23 18:52:02 +00:00
Makefile Use a warns setting we can catch regressions with. 2002-10-20 23:50:28 +00:00