LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-31-2004, 05:55 PM   #1
linuxboy69
Member
 
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, 07:06 PM   #2
UsualTuxpect
Member
 
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, 05:13 PM   #3
linuxboy69
Member
 
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.
 
  


Reply


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 02:02 AM
too many "TIME_WAIT" on apache2 jiawj Linux - Software 0 06-14-2005 10:19 AM
MSL and TCP time_wait 98steve600 Linux - General 1 03-28-2005 04:45 AM
TIME_WAIT and too many sockets in that state dkumar10 Linux - Networking 1 07-16-2004 07:59 AM
ftp connections hanging forever in CLOSE, CLOSE_WAIT state mxyzplk Linux - Software 0 11-26-2003 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:38 PM.

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