Message ID | 20220927213918.799925-1-samuel.thibault@ens-lyon.org |
---|---|
State | New |
Headers | show |
Series | [hurd,commited] hurd: Increase SOMAXCONN to 4096 | expand |
On Sep 27 2022, Samuel Thibault wrote: > Notably fakeroot-tcp may introduce a lot of parallel connections. > --- > sysdeps/mach/hurd/bits/socket.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sysdeps/mach/hurd/bits/socket.h b/sysdeps/mach/hurd/bits/socket.h > index 70fce4fb27..4ece37f1dd 100644 > --- a/sysdeps/mach/hurd/bits/socket.h > +++ b/sysdeps/mach/hurd/bits/socket.h > @@ -147,7 +147,7 @@ enum __socket_type > #define AF_MAX PF_MAX > > /* Maximum queue length specifiable by listen. */ > -#define SOMAXCONN 128 /* 5 on the origional 4.4 BSD. */ > +#define SOMAXCONN 4096 /* 5 on the origional 4.4 BSD. */ Perhaps fix the comment as well.
Andreas Schwab, le mer. 28 sept. 2022 09:48:33 +0200, a ecrit: > On Sep 27 2022, Samuel Thibault wrote: > > > Notably fakeroot-tcp may introduce a lot of parallel connections. > > --- > > sysdeps/mach/hurd/bits/socket.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/sysdeps/mach/hurd/bits/socket.h b/sysdeps/mach/hurd/bits/socket.h > > index 70fce4fb27..4ece37f1dd 100644 > > --- a/sysdeps/mach/hurd/bits/socket.h > > +++ b/sysdeps/mach/hurd/bits/socket.h > > @@ -147,7 +147,7 @@ enum __socket_type > > #define AF_MAX PF_MAX > > > > /* Maximum queue length specifiable by listen. */ > > -#define SOMAXCONN 128 /* 5 on the origional 4.4 BSD. */ > > +#define SOMAXCONN 4096 /* 5 on the origional 4.4 BSD. */ > > Perhaps fix the comment as well. Right, done so :) Samuel
diff --git a/sysdeps/mach/hurd/bits/socket.h b/sysdeps/mach/hurd/bits/socket.h index 70fce4fb27..4ece37f1dd 100644 --- a/sysdeps/mach/hurd/bits/socket.h +++ b/sysdeps/mach/hurd/bits/socket.h @@ -147,7 +147,7 @@ enum __socket_type #define AF_MAX PF_MAX /* Maximum queue length specifiable by listen. */ -#define SOMAXCONN 128 /* 5 on the origional 4.4 BSD. */ +#define SOMAXCONN 4096 /* 5 on the origional 4.4 BSD. */ /* Get the definition of the macro to define the common sockaddr members. */ #include <bits/sockaddr.h>