Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2008 19:33:30 +0100 (BST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Eygene Ryabinkin <rea-fbsd@codelabs.ru>
Cc:        net@freebsd.org, Ali Niknam <freebsd-net@transip.nl>, Paul <paul@gtcomm.net>
Subject:   Re: FreeBSD 7.0: sockets stuck in CLOSED state...
Message-ID:  <20080627193034.B32893@fledge.watson.org>
In-Reply-To: <cApEDKk3Lgor00nO3MwN6FQbgGQ@ueg2etH2tHnUpbLg646csVJgCAY>
References:  <486283B0.3060805@transip.nl> <5A9ZR/wNTIFIXEvIi7qXj2foxBI@/2P5JkFFETcbMzHSQ1hIkFGHokc> <48648D70.50304@transip.nl> <c9uXVuSzhJDd2VY%2Bhw9uuGe5NAg@3xQSkDAynh8xLl8Q/P9pjshN3Fo> <4864E0FE.40708@gtcomm.net> <cApEDKk3Lgor00nO3MwN6FQbgGQ@ueg2etH2tHnUpbLg646csVJgCAY>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 27 Jun 2008, Eygene Ryabinkin wrote:

> Paul, good day.
>
> Fri, Jun 27, 2008 at 08:45:50AM -0400, Paul wrote:
>> I have the same 'problem' if that helps any.. Sockets stuck for over a 
>> month in CLOSED and they have a * for the port on the source IP. tcp4 0 0 
>> 67.1.1.1.* 67.1.1.2.1261 CLOSED 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #6: 
>> Thu Apr 17 18:11:49 EDT 2008 amd64 Doesn't seem to cause any issues though.
>
> And what is listening to that port?  Can you identify the application? Just 
> for the record -- may be it will narrow down the search list.
>
> Robert Watson told us today at the morning that he spotted the bug that lead 
> to the '*' instead of port number.  Robert, can you post the patch -- it 
> seems to be not yet committed, at least cvs-src list has no signs of it?
>
> By the way, is the patch touches in_pcbdrop() in /sys/netinet/in_pcb.c, 
> removing instruction 'inp->inp_lport = 0;'?

Hi Eygene,

I've not yet had a chance to put the patch together; it does involve removing 
that line, but it's somewhat more complicated because inp_lport is used to 
signal whether or not the inpcb is still in various linked list.  My current 
thinking is that I'd actually like to make it an explicit flag that indicates 
being on the lists so that we can have the port set non-zero yet no longer be 
on the lists (which would cause the closed connection to occupy the tuple).

Robert N M Watson
Computer Laboratory
University of Cambridge



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080627193034.B32893>