Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FIN_WAIT handler

Status
Not open for further replies.

raisin96

Programmer
Oct 10, 2002
21
0
0
US
Hi,

Does anybody know how to handle the FIN_WAIT states? The setup is my server is suppose to automatically revert back to LISTEN mode once it gets disconnected (or restarted). My problem is that there are instances that the port I am suppose to use is sometimes in FIN_WAIT1 or FIN_WAIT2 status so there are times that it takes more than a few minutes before I can bind it. The server should be able to go to LISTEN mode in less than 2 minutes. Is there a way to get around this problem or lower the timer settings of this states so that it can release the port earlier? By the way, my program is written in Unix C in an AIX 5.2 OS. Also, I'm currently using the SO_REUSEADDR and SO_LINGER socket options.

Thanks in advance.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top