HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: TCP Socket in CLOSE_WAIT status
Operating System - HP-UX
1834576
Members
3287
Online
110069
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-15-2000 09:56 PM
03-15-2000 09:56 PM
TCP Socket in CLOSE_WAIT status
I have port 5101 stuck in a 'close_wait' status. Is their a quick fix to this
without rebooting the server?
without rebooting the server?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2000 11:46 PM
03-15-2000 11:46 PM
Re: TCP Socket in CLOSE_WAIT status
The remote side has closed the socket and sent a FIN packet. The local kernel
has sent the ACK to the FIN packet and now, locally, the socket is in
CLOSE_WAIT. There is a program which has the socket open. If that program
tries to read from the socket, it will get a EOF. As the state indicates, the
local kernal is waiting for a close(). If you find the program that has the
socket open and kill it, that will close all open file descriptors, including
the socket in question and then the kernel will send the FIN to the remote host
and the socket will enter the LAST_ACK state. One the remote host sends that
ACK, which should happen very quickly, the socket will go poof.
has sent the ACK to the FIN packet and now, locally, the socket is in
CLOSE_WAIT. There is a program which has the socket open. If that program
tries to read from the socket, it will get a EOF. As the state indicates, the
local kernal is waiting for a close(). If you find the program that has the
socket open and kill it, that will close all open file descriptors, including
the socket in question and then the kernel will send the FIN to the remote host
and the socket will enter the LAST_ACK state. One the remote host sends that
ACK, which should happen very quickly, the socket will go poof.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2000 01:19 AM
03-16-2000 01:19 AM
Re: TCP Socket in CLOSE_WAIT status
Thanks for that info...
I know the program that is holding open the port, what I really need is a
script/commands that will kill off the port, without killing off inetd in its
entirety. Then once the port is killed off then the program should try to
re-establish the comms. port.
Any advice would be helpful...Thanks
I know the program that is holding open the port, what I really need is a
script/commands that will kill off the port, without killing off inetd in its
entirety. Then once the port is killed off then the program should try to
re-establish the comms. port.
Any advice would be helpful...Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2000 02:02 AM
03-16-2000 02:02 AM
Re: TCP Socket in CLOSE_WAIT status
I doubt that inetd is the program that is holding the socket in CLOSE_WAIT.
You can use the freeware program lsof to find the program that has it open.
You can use the freeware program lsof to find the program that has it open.
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