Networking Forums

Networking Forums > Computer Networking > Linux Networking > Clearing CLOSE_WAIT connections?

Reply
Thread Tools Display Modes

Clearing CLOSE_WAIT connections?

 
 
newsbot@cox.net
Guest
Posts: n/a

 
      08-24-2006, 01:29 AM
I have a little ssh port-forwarding going on for a solution I am
running. Most of the time, it works great, but occasionally, I get a
"peer closed connection" error and I have to start over again. The
interrupted connection hangs around in CLOSE_WAIT and I don't want to
wait. I know the port connection is gone and the process that had the
port open is killed, but it seems I have to wait for the CLOSE_WAIT to
time out. I'sd be great if there was a way to kill the CLOSE_WAIT
socket immediately just like I can kill the process. Does anyone know
how I can do this? I'm tired of waiting for these connections to
clear...

/usr/ceo

 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      08-24-2006, 02:44 AM

(E-Mail Removed) wrote:

> I have a little ssh port-forwarding going on for a solution I am
> running. Most of the time, it works great, but occasionally, I get a
> "peer closed connection" error and I have to start over again. The
> interrupted connection hangs around in CLOSE_WAIT and I don't want to
> wait. I know the port connection is gone and the process that had the
> port open is killed, but it seems I have to wait for the CLOSE_WAIT to
> time out. I'sd be great if there was a way to kill the CLOSE_WAIT
> socket immediately just like I can kill the process. Does anyone know
> how I can do this? I'm tired of waiting for these connections to
> clear...
>
> /usr/ceo


You need to close the connection. The exact issue is not particular
easy to detect, but it could be as simple as calling 'fork' to fork off
a process to handle the connection but forgetting to close the
connection in the parent.

DS

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are there any limit to CLOSE_WAIT state connecitons adar_ji@yahoo.com Linux Networking 1 02-06-2009 02:17 AM
CLOSE_WAIT problem between sshd and ldap robert Linux Networking 0 04-22-2008 03:24 AM
CLOSE_WAIT issue (Software fails to close connections) flarosa Linux Networking 1 03-19-2008 10:33 PM
DNS Not clearing up records -=M@rk=- Windows Networking 2 02-06-2007 10:29 PM
CLOSE_WAIT vs. EOF iksrazal@terra.com.br Linux Networking 8 06-22-2005 05:21 AM



1 2 3 4 5 6 7 8 9 10 11