diff mbox series

[hurd,commited] hurd: Increase SOMAXCONN to 4096

Message ID 20220927213918.799925-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series [hurd,commited] hurd: Increase SOMAXCONN to 4096 | expand

Commit Message

Samuel Thibault Sept. 27, 2022, 9:39 p.m. UTC
Notably fakeroot-tcp may introduce a lot of parallel connections.
---
 sysdeps/mach/hurd/bits/socket.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andreas Schwab Sept. 28, 2022, 7:48 a.m. UTC | #1
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.
Samuel Thibault Sept. 28, 2022, 5:23 p.m. UTC | #2
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 mbox series

Patch

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>