LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I close TIME_WAIT connections? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-close-time_wait-connections-224954/)

linuxboy69 08-31-2004 04:55 PM

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

UsualTuxpect 08-31-2004 06:06 PM

in doing so would you be discriminationg against users on a low bandwidth and high delay connections???

linuxboy69 09-01-2004 04:13 PM

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.


All times are GMT -5. The time now is 05:14 AM.