From andrew@ugh.net.au  Mon Oct 19 00:13:28 1998
Received: from beebite.ugh.net.au ([203.17.118.148])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA28129
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 Oct 1998 00:13:23 -0700 (PDT)
          (envelope-from andrew@ugh.net.au)
Received: (from andrew@localhost)
	by beebite.ugh.net.au (8.8.8/8.8.8) id HAA00919;
	Mon, 19 Oct 1998 07:12:16 GMT
	(envelope-from andrew)
Message-Id: <199810190712.HAA00919@beebite.ugh.net.au>
Date: Mon, 19 Oct 1998 07:12:16 GMT
From: andrew@ugh.net.au
Reply-To: andrew@ugh.net.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: netstat seems to miss a connection
X-Send-Pr-Version: 3.2

>Number:         8369
>Category:       bin
>Synopsis:       netstat seems to miss a connection
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 19 00:20:01 PDT 1998
>Closed-Date:    Mon Dec 14 06:19:14 GMT 1998
>Last-Modified:  Sun Dec 13 22:20:07 PST 1998
>Originator:     Andrew
>Release:        FreeBSD 2.2.7-STABLE i386
>Organization:
UgH!
>Environment:

	FreeBSD stable as of yesterday. Rebuilt kernel. Running ppp -alias.

>Description:

I'm making a port and it is ftping a file from ftp.freebsd.org but the
connection is marked as FIN_WAIT_2 in netstat. The file is arriving according
to fetch and the modem receive light is full on but netstat says:

Active Internet connections
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp        0      0  ts1m48.the-gc.ne.1037  foxy.ion.com.au.8080   FIN_WAIT_2
tcp        0      0  ts1m13.the-gc.ne.1031  foxy.ion.com.au.8080   FIN_WAIT_2
tcp        0      0  ts1m13.the-gc.ne.1030  irc01.powerup.co.6667  ESTABLISHED
tcp        0      0  beebite.telnet         seabite.2052           ESTABLISHED
tcp        0    423  beebite.telnet         seabite.2051           ESTABLISHED
tcp        0      0  beebite.telnet         seabite.2050           ESTABLISHED
tcp        0      0  beebite.telnet         seabite.2049           ESTABLISHED
udp        0      0  localhost.domain       *.*
udp        0      0  ts1m48.the-gc.ne.domai *.*
udp        0      0  beebite.domain         *.*

foxy.ion.com.au is set as my proxy. ts1m48.the-gc.net is my address on the tun
interface.

>How-To-Repeat:

It does it quite regularly...not just when making ports either.

>Fix:
	
	

>Release-Note:
>Audit-Trail:

From: Marc Slemko <marcs@znep.com>
To: andrew@ugh.net.au
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/8369: netstat seems to miss a connection
Date: Mon, 19 Oct 1998 00:56:32 -0700 (PDT)

 On Mon, 19 Oct 1998 andrew@ugh.net.au wrote:
 
 > >Description:
 > 
 > I'm making a port and it is ftping a file from ftp.freebsd.org but the
 > connection is marked as FIN_WAIT_2 in netstat. The file is arriving according
 > to fetch and the modem receive light is full on but netstat says:
 > 
 > Active Internet connections
 > Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
 > tcp        0      0  ts1m48.the-gc.ne.1037  foxy.ion.com.au.8080   FIN_WAIT_2
 > tcp        0      0  ts1m13.the-gc.ne.1031  foxy.ion.com.au.8080   FIN_WAIT_2
 
 Perfectly legitimate.
 
 FIN_WAIT_2 is a valid state when the connection has been half closed.  No
 more data can be sent, but it can (and is) still accepting data.
 
 Using the -b option to fetch will avoid this, but it isn't a problem so
 there is no reason to avoid it.
 
State-Changed-From-To: open->closed
State-Changed-By: steve
State-Changed-When: Mon Dec 14 06:19:14 GMT 1998
State-Changed-Why: 
Originator confirmed this is not a bug, but a mis-understanding.
>Unformatted:
