Find the answer to your Linux question:
Results 1 to 2 of 2
Hi Is there any way one could terminate a port by using a simple shell command specifying the port number? (centos) The story behind it is I've got a service ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    1

    terminating a connction


    Hi

    Is there any way one could terminate a port by using a simple shell command specifying the port number? (centos)

    The story behind it is I've got a service that crashes down leaving the connection in close-wait state. when I try to start the service again - it notifies me port is in use...

    Thanks
    Amichai

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    This is a tricky situation (and I've bumped into it before with a certain proprietary app running on Solaris). When the service crashes, the PID is gone, right?

    Not sure I can help with this, but read the first few hits returned by a google search on close_wait for an idea about what is occurring.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •