On Sun, Jun 14, 2020 at 04:02:49PM +0000, George R Goffe wrote: > I occasionally get a message from wget(?) that states "just got xxx of yyy > bytes". > > Is this a failure in wget? A server problem? I have the source for wget1 and > wget2 and don't see any strings "just got" in any of the code. Maybe it > comes from one of the external libraries wget* uses? > libwget/http.c in wget2:
if (nbytes < 0)
error_printf(_("Failed to read %zd bytes (%d)\n"), nbytes,
errno);
if (body_len < resp->content_length) {
resp->length_inconsistent = true;
error_printf(_("Just got %zu of %zu bytes\n"), body_len,
resp->content_length);
} else if (body_len > resp->content_length) {
resp->length_inconsistent = true;
error_printf(_("Body too large: %zu instead of %zu bytes\n"),
body_len, resp->content_length);
}
It happens when a server claimed that the response body had XXX bytes, but
then the server only sent yyy bytes.
It is either a bug in the the server, or a network error. There also was a bug
in wget2 when resuming a file retrieval
<https://gitlab.com/gnuwget/wget2/-/issues/447>.
-- Petr
signature.asc
Description: PGP signature
