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

[Question] What is connection listen backlog? #186

Closed
druchoo opened this issue Jun 13, 2016 · 4 comments
Closed

[Question] What is connection listen backlog? #186

druchoo opened this issue Jun 13, 2016 · 4 comments

Comments

@druchoo
Copy link

druchoo commented Jun 13, 2016

# -B connection listen backlog, defaults to 3
#143

currently the listen backlog is hardwired to 3, which isn't even near to sufficient on machines that handle 10K+ of connections per second, so we should be able to increase the backlog there.

This should allow resolving the
possible SYN flooding on port 2003. Sending cookies.
message

Can someone please explain what connection listen backlog is and elaborate on how changing this setting impacts performance?

@grobian grobian closed this as completed Jun 16, 2016
@grobian grobian reopened this Jun 16, 2016
@grobian
Copy link
Owner

grobian commented Jun 16, 2016

I thought I answered this in length, apparently not.

long story short, the setting has no impact on performance.

@redbaron
Copy link

has it? setting it to 512 will do no harm whatsoever, but would make it more reliable against short burst of new incoming connections. setting it to 3 is just silly and have no reason to exist

@grobian
Copy link
Owner

grobian commented Jun 22, 2016

If you want to advocate changing the default to 512, then go ahead, no reason not to change it if there is a good reason for it. File a new issue for it.

@druchoo
Copy link
Author

druchoo commented Jul 13, 2016

My question has been answered and created #203 to increase default value to 512. Closing issue.

http://veithen.github.io/2014/01/01/how-tcp-backlog-works-in-linux.html for further reading on connection listen backlog

@druchoo druchoo closed this as completed Jul 13, 2016
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

3 participants