I’ve observed hundreds of these sockets in the CLOSED_WAIT state.
Eventually, there’s a “java.io.IOException: Too many open files” failure.
hciengine-initiated sockets (which are of type IPv4) disappear properly when disconnected.
Bouncing the hostserver clears up the CLOSE_WAIT sockets and for a brief while, the IPv6 sockets function properly when disconnecting, i.e. they disappear instead of hanging in a CLOSE_WAIT state.
I’ve attached some output from the “lsof -i tcp” command.
Thanks in advance for any ideas or solutions.
Also, and perhaps related, does anyone know why java opens IPv6 listeners and hciengine uses IPv4?