Skip to content

so_reuseaddr #528

@robutil

Description

@robutil

Hello,

I am using your library to create an ad-hoc WebSocketServer in Android, and it works very well.

However, in some cases I need to restart the WebSocketServer. Unfortunately, this is impossible because the flag of SO_REUSEADDR is not set, thus causing a BindException. Currently, this is fixed by simply restarting the application, but this is not desirable.

Could you allow the created socket in WebSocketServer.java in run() to be public, thus allowing users to set the socket.setReuseAddress(true) flag?

Thanks in advance

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions