Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jun 2008 16:48:40 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Agus <agus.262@gmail.com>
Cc:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: Doubt about hanged ESTABLISHED connections on netstat...
Message-ID:  <44myllw1g7.fsf@be-well.ilk.org>
In-Reply-To: <fda61bb50806141211n28b10497m959a4b04cc988409@mail.gmail.com> (Agus's message of "Sat\, 14 Jun 2008 16\:11\:31 -0300")
References:  <fda61bb50806141211n28b10497m959a4b04cc988409@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Agus <agus.262@gmail.com> writes:

> Today i was on my Freebsd6.1 logged from my notebook through SSH...somehow i
> lost my Internet connection on my laptop; i realized that, cause i couldnt
> type anything on ssh so i checked and i had lost internet connection....I
> reset my router..connect through Internet, now working, to my BSD again and
> i can see the old connections as ESTABLISHED.....They are hanged there cause
> of the loss of my connection i guess....So my doubt and question was;
> Is this normal behaviour, who is "in charge" of managing this? the TCP
> stack, or can i config SSH...If someone who's got the time and willing to
> explain, share thoughts about this, i ll be grateful...

They will time out when the application tries to send some data and
fails for a period of time.  You can configure ssh to use "keepalives"
if you want to hurry this along.  Or you can kill the process holding
the socket, and the socket will be closed along with the process.  

It isn't something to spend time worrying about unless you really want
to...



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