uNetworking / uSockets

Miniscule cross-platform eventing, networking & crypto for async applications
Apache License 2.0
1.29k stars 268 forks source link

Allow Disabling SO_REUSEPORT #48

Closed mikeseese closed 5 years ago

mikeseese commented 5 years ago

Per the discussions on https://github.com/uNetworking/uWebSockets.js/issues/118 from @davidmurdoch, this PR adds back the ability to use the options to control SO_REUSEPORT.

However, instead of reinstating the previous option to opt-in, I have altered the code to maintain the opt-out functionality.

Feel free to edit the code directly as you see fit @alexhultman