-   Linux - Networking (
-   -   Delay in HTTP Port Release (

sudhasmyle 06-14-2005 08:27 AM

Delay in HTTP Port Release
Hi all,
Our tool is running as a background process. We have use the tool through the http browser. Like this. After closing the tool's background process.
It will take minimum 60 to 90 seconds to release that particular port (8000). My Question

1. Why Linux (Redhat 9) taking these much delay to release the ports?
2. How to Overcome this Delay for releasing the ports?

This delay of releasing ports creating lot of troble.

Thanks in Advance

Kvetch 06-14-2005 11:40 PM

I am not sure exactly what your issue is but if this is a TCP connection then it could be due to the TIME-WAIT sockets. This is not an Linux specific issue, it is a TCP issue. Basically after the last connection is closed the server holds the connection open for twice the Maximum Segment Lifetime or around 240secs. You can try doing the following and seeing if it fixes the issue. The kernel can be tweaked to reuse these TIME-WAIT states. This might correct your issue. Try doing the following. This supposedly could cause issues with the client but you will have to test and since the client is you I doubt you would care.
# sysctl -w net.ipv4.tcp_tw_reuse=1
# sysctl -w net.ipv4.tcp_tw_recycle=1


sudhasmyle 06-15-2005 07:48 AM

Hi Kvetch,
Thanks for your help. Now i got the solution for this problem.


Kvetch 06-15-2005 02:14 PM

What was the solution?

All times are GMT -5. The time now is 03:44 PM.