You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TCP ports do not close properly when using server #2
This occurred when using java_posix_spawn on Arch Linux on the Raspberry Pi.
Open a ServerSocket
Launch a process, any process, using new SpawnProcess()
Close ServerSocket
Everything appears to work as expected, except that checking 'netstat -a' shows the socket is still LISTENing. Attempting to re-open the socket will result in an IOException claiming the port is already open.
There are no errors or exceptions reported during the close operation. It claims to complete successfully.
Removing java_posix_spawn and replacing with normal Process makes the problem go away.
Activity
guillerodriguez commentedon Aug 7, 2014
I would say this is the same bug as #1. If so then you may want to check bxm156's fork which fixes this problem (link: https://github.com/bxm156/java_posix_spawn).