diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-01-12 03:23:48 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-01-12 03:23:48 +0000 |
commit | a3a449c17b2302235b70651a82e6d6b8f878524c (patch) | |
tree | d73ce28fc94bd2da146153469d129e5afd794d94 /sunrpc | |
parent | 537e7234f77be5ceab819b701fb173fb859e0605 (diff) | |
download | glibc-a3a449c17b2302235b70651a82e6d6b8f878524c.zip glibc-a3a449c17b2302235b70651a82e6d6b8f878524c.tar.gz glibc-a3a449c17b2302235b70651a82e6d6b8f878524c.tar.bz2 |
* sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
as backlog.
* sunrpc/svc_unix.c (svcunix_create): Likewise.
Diffstat (limited to 'sunrpc')
-rw-r--r-- | sunrpc/svc_tcp.c | 2 | ||||
-rw-r--r-- | sunrpc/svc_unix.c | 2 |
2 files changed, 2 insertions, 2 deletions
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) diff --git a/sunrpc/svc_unix.c b/sunrpc/svc_unix.c index cfbc638..d95e884 100644 --- a/sunrpc/svc_unix.c +++ b/sunrpc/svc_unix.c @@ -161,7 +161,7 @@ svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) __bind (sock, (struct sockaddr *) &addr, len); if (__getsockname (sock, (struct sockaddr *) &addr, &len) != 0 - || __listen (sock, 2) != 0) + || __listen (sock, SOMAXCONN) != 0) { perror (_("svc_unix.c - cannot getsockname or listen")); if (madesock) |