Skip to content

TCP ports do not close properly when using server #2

@ericwlange

Description

@ericwlange

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions