From hunt@mph124.rh.psu.edu  Mon Nov 17 18:26:10 1997
Received: from mph124.rh.psu.edu (hunt@MPH124.rh.psu.edu [128.118.126.83])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA07102
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Nov 1997 18:26:10 -0800 (PST)
          (envelope-from hunt@mph124.rh.psu.edu)
Received: (from hunt@localhost)
	by mph124.rh.psu.edu (8.8.7/8.8.7) id VAA05897;
	Mon, 17 Nov 1997 21:26:08 -0500 (EST)
	(envelope-from hunt)
Message-Id: <199711180226.VAA05897@mph124.rh.psu.edu>
Date: Mon, 17 Nov 1997 21:26:08 -0500 (EST)
From: mph@pobox.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: fetch cannot retrieve a URL
X-Send-Pr-Version: 3.2

>Number:         5074
>Category:       bin
>Synopsis:       fetch cannot retrieve a URL
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 17 18:30:01 PST 1997
>Closed-Date:    Sat Dec 6 23:15:29 PST 1997
>Last-Modified:  Sat Dec  6 23:16:08 PST 1997
>Originator:     Matthew Hunt
>Release:        FreeBSD 2.2.5-RELEASE i386
>Organization:
none
>Environment:

     $Id: fetch.h,v 1.3.2.2 1997/09/15 08:07:04 jkh Exp $
     $Id: file.c,v 1.1.2.2 1997/11/12 04:40:45 obrien Exp $
     $Id: ftp.c,v 1.3.2.5 1997/10/08 18:44:07 fenner Exp $
     $Id: http.c,v 1.4.2.5 1997/11/08 22:24:45 obrien Exp $
     $Id: main.c,v 1.26.2.8 1997/09/15 08:07:06 jkh Exp $
     $Id: uri.c,v 1.1 1997/01/30 21:43:43 wollman Exp $
     $Id: util.c,v 1.5 1997/02/11 20:46:06 wollman Exp $


>Description:

fetch cannot retrieve the URL:

$ fetch http://www.geocities.com/SiliconValley/Park/2055/c2ps-40.tgz
fetch: reading reply from www.geocities.com: Connection reset by peer

$ tcpdump -tp host www.geocities.com
tcpdump: listening on ed0
mph124.rh.psu.edu.4174 > 209.1.224.11.http: SP 3332479440:3332479540(100) win 16728 <mss 1460,nop,wscale 0,nop,nop,timestamp[|tcp]> (DF)
209.1.224.11.http > mph124.rh.psu.edu.4174: S 1234567:1234567(0) ack 3332479441 win 2048
mph124.rh.psu.edu.4174 > 209.1.224.11.http: FP 101:166(65) ack 1 win 16728 (DF)
209.1.224.11.http > mph124.rh.psu.edu.4174: R 1:1(0) ack 102 win 2048

This problem is relevant to /usr/ports/print/c2ps.  wget and lynx can
both retreive the URL.

>How-To-Repeat:

fetch http://www.geocities.com/SiliconValley/Park/2055/c2ps-40.tgz

>Fix:

Unknown, sorry. :-(
>Release-Note:
>Audit-Trail:

From: Marc Slemko <marcs@znep.com>
To: mph@pobox.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/5074: fetch cannot retrieve a URL
Date: Mon, 17 Nov 1997 20:38:33 -0700 (MST)

 On Mon, 17 Nov 1997 mph@pobox.com wrote:
 
 > >Description:
 > 
 > fetch cannot retrieve the URL:
 > 
 > $ fetch http://www.geocities.com/SiliconValley/Park/2055/c2ps-40.tgz
 > fetch: reading reply from www.geocities.com: Connection reset by peer
 > 
 > $ tcpdump -tp host www.geocities.com
 > tcpdump: listening on ed0
 > mph124.rh.psu.edu.4174 > 209.1.224.11.http: SP 3332479440:3332479540(100) win 16728 <mss 1460,nop,wscale 0,nop,nop,timestamp[|tcp]> (DF)
 > 209.1.224.11.http > mph124.rh.psu.edu.4174: S 1234567:1234567(0) ack 3332479441 win 2048
 > mph124.rh.psu.edu.4174 > 209.1.224.11.http: FP 101:166(65) ack 1 win 16728 (DF)
 > 209.1.224.11.http > mph124.rh.psu.edu.4174: R 1:1(0) ack 102 win 2048
 
 The server is broken.  Use the -t option to fetch to work around it.  I
 tried to contact them months ago to see what broken monstrosity they were
 using for an OS, but (predictably) got no response.
 
 Not sure if there is a nice way to have a port automatically add this...
 hmm...
 

From: Matthew Hunt <mph@pobox.com>
To: Marc Slemko <marcs@znep.com>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/5074: fetch cannot retrieve a URL
Date: Mon, 17 Nov 1997 22:57:49 -0500

 On Mon, Nov 17, 1997 at 08:38:33PM -0700, Marc Slemko wrote:
 
 > The server is broken.  Use the -t option to fetch to work around it.  I
 > tried to contact them months ago to see what broken monstrosity they were
 > using for an OS, but (predictably) got no response.
 
 Thanks, verified.
 
 > Not sure if there is a nice way to have a port automatically add this...
 > hmm...
 
 Reading /usr/share/mk/bsd.port.mk, it looks like there are knobs
 for arguments to fetch; it shouldn't be a problem.
 
 This PR may be closed, thanks for the help.
 Matthew
 
 -- 
 Matthew Hunt <mph@pobox.com> * Think locally, act globally.
 finger hunt@mph124.rh.psu.edu for PGP public key.
State-Changed-From-To: open->feedback 
State-Changed-By: fenner 
State-Changed-When: Mon Nov 17 20:55:33 PST 1997 
State-Changed-Why:  
This appears to be a symptom of the buggy T/TCP interaction that 
the "-b" flag was designed to work around.  Can you re-try the 
fetch with "-b"? 

From: Bill Fenner <fenner@parc.xerox.com>
To: Marc Slemko <marcs@znep.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/5074: fetch cannot retrieve a URL 
Date: Mon, 17 Nov 1997 21:18:07 PST

 > Not sure if there is a nice way to have a port automatically add this...
 
 Use FETCH_BEFORE_ARGS= .
 
   Bill
State-Changed-From-To: feedback->closed 
State-Changed-By: fenner 
State-Changed-When: Sat Dec 6 23:15:29 PST 1997 
State-Changed-Why:  
"-t" worked. 
>Unformatted:
