mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
as backlog. * sunrpc/svc_unix.c (svcunix_create): Likewise.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user