From a3a449c17b2302235b70651a82e6d6b8f878524c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 12 Jan 2005 03:23:48 +0000 Subject: * sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN as backlog. * sunrpc/svc_unix.c (svcunix_create): Likewise. --- sunrpc/svc_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sunrpc/svc_tcp.c') diff --git a/sunrpc/svc_tcp.c b/sunrpc/svc_tcp.c index 4decfa4..873d39d 100644 --- a/sunrpc/svc_tcp.c +++ b/sunrpc/svc_tcp.c @@ -165,7 +165,7 @@ svctcp_create (int sock, u_int sendsize, u_int recvsize) (void) __bind (sock, (struct sockaddr *) &addr, len); } if ((__getsockname (sock, (struct sockaddr *) &addr, &len) != 0) || - (__listen (sock, 2) != 0)) + (__listen (sock, SOMAXCONN) != 0)) { perror (_("svc_tcp.c - cannot getsockname or listen")); if (madesock) -- cgit v1.1