- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Application locking port - CLOSE_WAIT
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2007 08:47 PM
03-18-2007 08:47 PM
We have an application that attempts to use a specific port when it starts up. Unfortunately we can't start the application as the port is in use. It looks like poor coding as a netstat -a shows 2 entries one in a CLOSE_WAIT state and one in FIN_WAIT2. As far as I am aware I cannot release the port. I have seen threads suggesting things to do to prevent this happening. Can I confirm that I would need to reboot to clear this port lock. There are no processes running for the application so I can't kill a process to rectify this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2007 08:55 PM
03-18-2007 08:55 PM
Solutionregards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2007 08:55 PM
03-18-2007 08:55 PM
Re: Application locking port - CLOSE_WAIT
I have been in similar situation a number of times, and the only reliable way to clear the port was to reboot.
Sorry !
Hope somebody else managed to find a solution for this, I couldn't.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2007 09:13 PM
03-18-2007 09:13 PM
Re: Application locking port - CLOSE_WAIT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2007 02:09 PM
03-19-2007 02:09 PM
Re: Application locking port - CLOSE_WAIT
It needs to be setting SO_REUSEADDR so it can rebind to the well-known port number while old endpoints (other than LINSTEN) remain.
99 times out of 10, CLOSE_WAIT means either the application forgot to pay attention to the read return of zero which it got when the other end went to FIN_WAIT_2, or the application forked() after accepting the connection and forgot to close the extra reference to that socket. IE that also means, 99 times out of 10 that the application is buggy.
Any ndd "kill the endpoint" stuff is simply a massive kludge.