freebsd-skq/lib/libfetch
des 2010baa9c1 Solve http buffering issues and hangs once and for all (hopefully!) by
simply not trying to return exactly what the caller asked for - just
return whatever we got and let the caller be the judge of whether it
was enough.  If an error occurs or the connection times out after we
already received some data, return a short read, under the assumption
that the next call will fail or time out before we read anything.

As it turns out, none of the code that calls fetch_read() assumes an
all-or-nothing result anyway, except for a couple of lines where we
read the CR LF at the end of a hunk in HTTP hunked encoding, so the
changes outside of fetch_read() and http_readfn() are minimal.

While there, replace select(2) with poll(2).

MFC after:	3 days
2014-01-28 12:48:17 +00:00
..
common.c Solve http buffering issues and hangs once and for all (hopefully!) by 2014-01-28 12:48:17 +00:00
common.h Solve http buffering issues and hangs once and for all (hopefully!) by 2014-01-28 12:48:17 +00:00
fetch.3 Include an Accept header in requests. 2013-07-30 13:07:55 +00:00
fetch.c Fix -Wunsequenced warning. 2013-06-29 15:51:27 +00:00
fetch.h latin1 -> utf8 2011-10-19 11:43:51 +00:00
file.c Adding missing return statements during error conditions. 2012-09-14 12:15:13 +00:00
ftp.c latin1 -> utf8 2011-10-19 11:43:51 +00:00
ftp.errors
http.c Solve http buffering issues and hangs once and for all (hopefully!) by 2014-01-28 12:48:17 +00:00
http.errors Don't deny non-temporary redirects if the -A option is set (per 2012-10-22 03:00:10 +00:00
Makefile Use libmd if and only if OpenSSL is not available. 2012-09-14 13:00:43 +00:00