release a socket stuck in CLOSE_WAIT?
Hi! A bit of a technical issue: I'm running Azureus, and a weird thing happened. Azureus crashed -- not unusual, but this time it was (I think) because I was messing with the network at the moment, and I was running Azureus through X over SSH. Probably not very important for my question.
Anyway, the problem is different: Azureus left a lot of connections occupied (from localhost:6880 to localhast:[various 5-digit ports], over tcp6 -- not sure why, I use ipv4 for internet). The connections are in the CLOSE_WAIT state, which is weird because the process itself doesn't exist anymore. As far as I know, only the program can close a connection in that state, or a _very_ large timeout (hours or days, I think).
I'm looking for a way to close them without restarting the computer. (I even tried "networking stop", they're still there when the network restarts.)
It's annoying because Azureus apparently tries to open those ports, notices they're in use, assumes it's still running, and closes with a "passing startup args to already-running Azureus java process listening on [127.0.0.1: 6880]" --- which of course does nothing, as the process doesn't exist anymore.
Any pointers?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Steve Dodd
- Solved:
- Last query:
- Last reply: