Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-31-2004, 04:55 PM   #1
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Rep: Reputation: 15
How do I close TIME_WAIT connections?

On my webservers, I noticed that I have an abundance of TIME_WAIT connections. Is this normal?

I was reading up on this in an attempt to try and close them but from what I understand, you can't close them until both sides of the connection have aggreed that there is no more information to be exchanged.

Is it possible the connections are staying open do to the programming of the web pages?

Do web connections usually stay open because there are generally many web requests between the client and the server and it is more effecient to keep it open?

If I were to close the TIME_WAIT connections sooner, do you think that would improve performance or at least increase the number of web connections one server could handle for a given period of time?

There is a timeout on the TIME_WAIT connections in the tcp.h file so I will try and cut that down from 60 seconds to 30 seconds. Is this a bad idea?

thanks in advance
Old 08-31-2004, 06:06 PM   #2
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
in doing so would you be discriminationg against users on a low bandwidth and high delay connections???
Old 09-01-2004, 04:13 PM   #3
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Original Poster
Rep: Reputation: 15
I do not believe so because the socket does not change to TIME_WAIT until all the information had been exchanged. So after the web page had completely finished loading for the client, then the socket would change to TIME_WAIT from what I understand. I could be wrong.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
time_wait problem gecoool Linux - Software 3 08-31-2005 01:02 AM
too many "TIME_WAIT" on apache2 jiawj Linux - Software 0 06-14-2005 09:19 AM
MSL and TCP time_wait 98steve600 Linux - General 1 03-28-2005 03:45 AM
TIME_WAIT and too many sockets in that state dkumar10 Linux - Networking 1 07-16-2004 06:59 AM
ftp connections hanging forever in CLOSE, CLOSE_WAIT state mxyzplk Linux - Software 0 11-26-2003 09:54 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration