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

Duplicate SO_REUSEPORT setsockopt error #24

Open
lars18th opened this issue Dec 2, 2020 · 1 comment
Open

Duplicate SO_REUSEPORT setsockopt error #24

lars18th opened this issue Dec 2, 2020 · 1 comment

Comments

@lars18th
Copy link

lars18th commented Dec 2, 2020

Hi,

Using a Debian 7 x64 machine (yes, quite old but working) I detected that the double call to the setsockopt SO_REUSEPORT fails:

#ifdef SO_REUSEPORT

So, I suggest to improve the code or include a configurable alternive, like with Environment variables.
I compiled it disabling this and then it works in this server.

I hope this helps to improve this tool.
Regards.

@pcherenkov
Copy link
Owner

Hi, thank you for the input. I implemented your suggested workaround using 2 env variables: UDPXY_SKIP_REUSEPORT & UDPXY_SKIP_REUSEADDR. It's in the branch i24-reuseaport. Please test and let me know if it works for you.

Regards,
-pavel

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