mirror of
https://github.com/troglobit/finit.git
synced 2026-10-29 12:40:44 +00:00
Reduce max backlog in listen(): 20 --> 10
Both the original MIT Athena inetd and the GNU inetutils inetd only keep a backlog of 10 connections in listen() for TCP sockets. This patch adjusts the Finit hard coded default accordingly. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
7f5f8ba09d
commit
5ea3cc0090
1 file changed
+1
-1
@@ -228,7 +228,7 @@ static int spawn_socket(inetd_t *inetd)
|
|||||||
|
|
||||||
if (inetd->port) {
|
if (inetd->port) {
|
||||||
if (inetd->type == SOCK_STREAM) {
|
if (inetd->type == SOCK_STREAM) {
|
||||||
if (-1 == listen(sd, 20)) {
|
if (-1 == listen(sd, 10)) {
|
||||||
FLOG_PERROR("Failed listening to inetd service %s", inetd->name);
|
FLOG_PERROR("Failed listening to inetd service %s", inetd->name);
|
||||||
close(sd);
|
close(sd);
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|||||||
Reference in new issue
Block a user