Alex Rivera | Logout

backlog value in listen system call

Asked 2009-10-28T07:58:34.263
10

I have a doubt regarding the backlog value in listen system call. From man page of listen system call.

If the backlog argument is greater than the value in /proc/sys/net/core/somaxconn, then it is silently truncated to that value; the default value in this file is 128.

It means my server can accept only <128 connections at once. What if I want to accept more connection >128 ?? Can I simply set the value to the possible maximum number so that I can access more number of connection ??

Edit
Report

1 Answer

4

Yes. Use a command such as

$ echo 1000 >/proc/sys/net/core/somaxconn

To set the limit higher. See, for instance, this page for more tuning tips.

answered 2009-10-28T08:01:09.027

Your Answer