HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Address already in use bind error
Operating System - HP-UX
1833866
Members
2445
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-04-2002 01:20 PM
03-04-2002 01:20 PM
Address already in use bind error
I have a threaded process with a signal handler that supports the HUP signal. Upon receiving this signal a UDP socket that is used to communicate with another "backup" process is closed (using shutdown() followed by close()). The process then attempts to open and bind to this socket. A test that continuously REHUPs the process every two minutes ran successfully for several hours. Eventually, however, the bind fails due to address already in use. Is it possible that the close is not complete even though it returns - ie. the O/S has some cleanup to perform?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 01:27 PM
03-04-2002 01:27 PM
Re: Address already in use bind error
have you tried tracing this with periodic netstats to try and catch the collision on the socket in the act?
--
mark
--
mark
the future will be a lot like now, only later
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 01:28 PM
03-04-2002 01:28 PM
Re: Address already in use bind error
take a look at netstat -an |grep x
where x is your port number and see how many connections you still have open.
Are they perhaps all stuck in FIN_WAIT_2?
If it is a lot you may want to do
netstat -an |grep x|wc -l
which will count them for you.
Are you using 11.0 or 10.x? NDD in 11.0 can increase the number of possible connections.
nettune is the equivalent on 10.
Ron
where x is your port number and see how many connections you still have open.
Are they perhaps all stuck in FIN_WAIT_2?
If it is a lot you may want to do
netstat -an |grep x|wc -l
which will count them for you.
Are you using 11.0 or 10.x? NDD in 11.0 can increase the number of possible connections.
nettune is the equivalent on 10.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 01:01 AM
03-05-2002 01:01 AM
Re: Address already in use bind error
Hello
Try to find any process is running on that particular port by using lsof utility.
#lsof -i |grep < port no>
Then kill that process and restart the program again hope it should work
Rgds
Manoj
Leave with out tense and try best you gets result
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP