LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2005, 08:27 AM   #1
sudhasmyle
Member
 
Registered: Nov 2004
Distribution: RedHat
Posts: 37

Rep: Reputation: 15
Question 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 http://127.0.0.1:8000/ 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
A.Sudhakar
 
Old 06-14-2005, 11:40 PM   #2
Kvetch
Member
 
Registered: Mar 2004
Posts: 35

Rep: Reputation: 15
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. http://www.faqs.org/rfcs/rfc1644.html
# sysctl -w net.ipv4.tcp_tw_reuse=1
# sysctl -w net.ipv4.tcp_tw_recycle=1

try http://www.port80software.com/200ok/...12/07/205.aspx

Last edited by Kvetch; 06-14-2005 at 11:43 PM.
 
Old 06-15-2005, 07:48 AM   #3
sudhasmyle
Member
 
Registered: Nov 2004
Distribution: RedHat
Posts: 37

Original Poster
Rep: Reputation: 15
Hi Kvetch,
Thanks for your help. Now i got the solution for this problem.

Regards,
A.Sudhakar.

Last edited by sudhasmyle; 06-15-2005 at 07:49 AM.
 
Old 06-15-2005, 02:14 PM   #4
Kvetch
Member
 
Registered: Mar 2004
Posts: 35

Rep: Reputation: 15
What was the solution?
 
  


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
VNC with SSH - won't release the port greauxe Linux - Networking 4 08-20-2005 02:42 PM
turn off http port 80, keep https port 443 lothario Linux - Networking 6 02-11-2005 05:06 AM
HTTP port and Proxy port problem AZIMBD03 Linux - Networking 3 04-15-2004 10:20 PM
attacking by http via port 80 LionKing Linux - Security 7 12-12-2002 01:08 PM
HTTP on port 8080 cauchy Linux - Networking 3 08-09-2001 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:09 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