Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Set SO_EXCLUSIVEADDRUSE on Win32 sockets. #150

Open
DrPizza opened this issue Aug 18, 2011 · 1 comment
Open

Set SO_EXCLUSIVEADDRUSE on Win32 sockets. #150

DrPizza opened this issue Aug 18, 2011 · 1 comment

Comments

@DrPizza
Copy link
Contributor

DrPizza commented Aug 18, 2011

SO_EXCLUSIVEADDRUSE and SO_REUSEADDR are a mess on Windows. The only real way to allow a libuv server to behave consistently and robustly (i.e. to ensure that it can actually listen on the port it needs to listen on and can't get clobbered by other programs) is to set SO_EXCLUSIVEADDRUSE. I think libuv should set this for such sockets, probably for both TCP and UDP.

@bnoordhuis
Copy link
Contributor

That's the plan for (at least) UDP sockets.

@saghul saghul mentioned this issue May 8, 2014
4 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants