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

UDP loadbalancing fails with EADDRINUSE #36

Open
mozeq opened this issue Dec 20, 2016 · 3 comments
Open

UDP loadbalancing fails with EADDRINUSE #36

mozeq opened this issue Dec 20, 2016 · 3 comments

Comments

@mozeq
Copy link

mozeq commented Dec 20, 2016

Hi,
I was playing with PEN as one of the option for udp loadbalancing and ran into a problem with the latest release. It seems like it's trying to repeatedly bind the listening address:port for every client, but it's failing with EADDRINSUSE. My wild guess is that it fails because my system uses older kernel (pre 3.2) and doesn't support the SO_REUSEPORT.

@UlricE
Copy link
Owner

UlricE commented Dec 21, 2016

That can be correct. Pen 0.33 and forward "connects" the downstream socket so that a multi-frame UDP "stream" will be treated as such and not as a bunch of individual frames.

My first suggestion would be to update the kernel, SO_REUSEPORT has been available for a number of years now.

Otherwise, Pen before 0.33 does not use SO_REUSEPORT and should work with an old kernel.

@UlricE
Copy link
Owner

UlricE commented Dec 21, 2016

BTW, Direct Server Return is another option for UDP load balancing.

@mozeq
Copy link
Author

mozeq commented Dec 21, 2016

Thanks for the quick response. Since I can't update the kernel, I will try to play with the DSR. I don't have any communication from the servers back to the clients in my use case, so it seems like the way to go anyway.

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