utils: use system default max for listen()

There's apparently a define that gives the right value to
pass to listen.  So this commit makes us use that instead of
our arbitrary "32"
This commit is contained in:
Ray Strode 2010-10-07 15:08:47 -04:00
parent bc55aec23c
commit 573f8c44a0

View file

@ -59,10 +59,6 @@
#define PLY_ERRNO_STACK_SIZE 256
#endif
#ifndef PLY_SOCKET_CONNECTION_BACKLOG
#define PLY_SOCKET_CONNECTION_BACKLOG 32
#endif
#ifndef PLY_SUPER_SECRET_LAZY_UNMOUNT_FLAG
#define PLY_SUPER_SECRET_LAZY_UNMOUNT_FLAG 2
#endif
@ -252,7 +248,7 @@ ply_listen_to_unix_socket (const char *path,
free (address);
if (listen (fd, PLY_SOCKET_CONNECTION_BACKLOG) < 0)
if (listen (fd, SOMAXCONN) < 0)
{
ply_save_errno ();
close (fd);