[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: closing connections
- To: Cedar Cox <cedarc(at-nospam)visionforisrael.com>
- Subject: Re: closing connections
- From: guy keren <choo(at-nospam)actcom.co.il>
- Date: Wed, 7 Nov 2001 22:49:01 +0200 (EET)
- cc: <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <Pine.LNX.4.21.0111071228370.3413-100000@nanu.visionforisrael.com>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Wed, 7 Nov 2001, Cedar Cox wrote:
> Right now one of my servers has 390 connections to our POP3 server in the
> CLOSE state and a few others in CLOSE_WAIT (looking at netstat).Is there
> a way to "flush" these?
i would guess those connections have only been half-closed - and hence are
still active (i.e. one side closed them, the other didn't). for the short
term, you could run 'lsof -i | egrep <port_number>' (as root) to find
which process on your machine holds the given port open (i know, this
egrep is not enough, but you can sort through the few lines it gives you
by hand) and then possibly kill that process (assuming its a forked-off
process that only handles this single connection).
for the longer term - you should check why this happens. could be that the
connection closing packets are being filtered out by a packet filter along
the path?
--
guy
"For world domination - press 1,
or dial 0, and please hold, for the creator." -- nob o. dy
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il