Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCP ports do not close properly when using server #2

Open
ericwlange opened this issue Mar 13, 2013 · 1 comment
Open

TCP ports do not close properly when using server #2

ericwlange opened this issue Mar 13, 2013 · 1 comment

Comments

@ericwlange
Copy link

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.

@guillerodriguez
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants