java_posix_spawn icon indicating copy to clipboard operation
java_posix_spawn copied to clipboard

TCP ports do not close properly when using server

Open ericwlange opened this issue 12 years ago • 1 comments

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.

ericwlange avatar Mar 13 '13 03:03 ericwlange

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).

guillerodriguez avatar Aug 07 '14 10:08 guillerodriguez