diff options
author | fenner <fenner@FreeBSD.org> | 1997-11-22 01:00:42 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1997-11-22 01:00:42 +0000 |
commit | 91940416f200da3976e054c7ca5e5791e3907163 (patch) | |
tree | 05be05ff74cd93f1628afa14deb3b7a14e408c7d /usr.bin | |
parent | 3056e64ca3428984821f3b3ba198f9d2a27c6ad5 (diff) | |
download | FreeBSD-src-91940416f200da3976e054c7ca5e5791e3907163.zip FreeBSD-src-91940416f200da3976e054c7ca5e5791e3907163.tar.gz |
Suggest using "-b" or "-t" if the connection is reset (typical symptom
of broken TCP stack).
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/fetch/http.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c index 9328218..bf6ca9c 100644 --- a/usr.bin/fetch/http.c +++ b/usr.bin/fetch/http.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: http.c,v 1.14 1997/11/01 05:47:41 ache Exp $ + * $Id: http.c,v 1.15 1997/11/18 03:27:34 jdp Exp $ */ #include <sys/types.h> @@ -671,6 +671,8 @@ got100reply: return EX_OSERR; } else if(ferror(remote)) { warn("%s", https->http_hostname); + if (errno == ECONNRESET) + warnx("(maybe try -b or -t)"); fclose(local); fclose(remote); rm(fs); @@ -967,6 +969,8 @@ spewerror: if (ferror(remote)) { warn("reading remote file from %s", https->http_hostname); + if (errno == ECONNRESET) + warnx("(maybe try -b or -t)"); status = EX_OSERR; } else if(ferror(local)) { warn("`%s': fwrite", fs->fs_outputfile); |