Published in <sxsita54sqy.fsf@florida.arsdigita.de>.
+2002-01-14 Hrvoje Niksic <hniksic@arsdigita.com>
+
+ * http.c (gethttp): Invalidate SOCK if get_contents encountered an
+ error.
+
2001-12-24 Hrvoje Niksic <hniksic@arsdigita.com>
* version.c: Wget 1.8.1 is released.
(contlen != -1 ? contlen : 0),
&rbuf, keep_alive, &hs->dltime);
+ if (hs->res >= 0)
+ CLOSE_FINISH (sock);
+ else
+ CLOSE_INVALIDATE (sock);
+
{
/* Close or flush the file. We have to be careful to check for
error here. Checking the result of fwrite() is not enough --
hs->res = -2;
}
FREE_MAYBE (all_headers);
- CLOSE_FINISH (sock);
if (hs->res == -2)
return FWRITEERR;
return RETRFINISHED;