- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: terminate the connection
Operating System - HP-UX
1752777
Members
5919
Online
108789
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
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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-17-2005 06:39 PM
тАО03-17-2005 06:39 PM
I am running some program that connect from 192.168.0.2 to 192.168.0.1 through the port 1186 , but in the host 192.168.0.1 found that the port 1186 is occupied by 192.168.0.2 ( there are three sessions ) , now host 192.168.0.1 can't connect one more session , it may be because the max. limit of session is full , can suggest how to erase this "CLOSE_WAIT" connection at 192.168.0.1 ? thx.
At 192.168.0.1
# netstat -na |grep 1186
tcp 0 0 0.0.0.0:1186 0.0.0.0:* LISTEN
tcp 1 0 192.168.0.1:1186 192.168.0.2:32783 CLOSE_WAIT
tcp 1 0 192.168.0.1:1186 192.168.0.2:32776 CLOSE_WAIT
tcp 1 0 192.168.0.1:1186 192.168.0.2:32787 CLOSE_WAIT
At 192.168.0.1
# netstat -na |grep 1186
tcp 0 0 0.0.0.0:1186 0.0.0.0:* LISTEN
tcp 1 0 192.168.0.1:1186 192.168.0.2:32783 CLOSE_WAIT
tcp 1 0 192.168.0.1:1186 192.168.0.2:32776 CLOSE_WAIT
tcp 1 0 192.168.0.1:1186 192.168.0.2:32787 CLOSE_WAIT
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 07:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 07:17 PM
тАО03-17-2005 07:17 PM
Re: terminate the connection
thx CTK ,
it works , thx a lot.
it works , thx a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2005 07:04 AM
тАО03-19-2005 07:04 AM
Re: terminate the connection
99 times out of 10, CLOSE_WAIT is an application-level bug. It means that on the side where the CLOSE_WAIT's exist, the application received a connection termination notification from the remote (eg read return of 0) but then did not call close() itself.
Terminating the process(es) kludges around the application bug because in Unix, process termination causes the files (eg sockets) to be closed.
Best to fix the application(s).
And, if the problem includes not being able to restart an instance of a server - its bind fails - that implies there is also a bug there - the server program should be setting SO_REUSEADDR with setsockopt() before trying to bind() to its well-known port number(s).
Terminating the process(es) kludges around the application bug because in Unix, process termination causes the files (eg sockets) to be closed.
Best to fix the application(s).
And, if the problem includes not being able to restart an instance of a server - its bind fails - that implies there is also a bug there - the server program should be setting SO_REUSEADDR with setsockopt() before trying to bind() to its well-known port number(s).
there is no rest for the wicked yet the virtuous have no pillows
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP