X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftcpip.c;h=6400e7d841b36342a2eb3f68aa83279323517c58;hp=db0e834b77352e191623f4c308233aae8cde9cb5;hb=aaf5a12c13670c9d034ecf809448201e1ef5d8de;hpb=c43b2d080cc557adb59b37b3d8f427871481c7e8 diff --git a/src/tcpip.c b/src/tcpip.c index db0e834..6400e7d 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tcpip.c,v 1.16 2005-06-25 15:46:06 adam Exp $ + * $Id: tcpip.c,v 1.17 2005-07-19 12:40:52 mike Exp $ */ /** * \file tcpip.c @@ -534,7 +534,8 @@ static int tcpip_bind(COMSTACK h, void *address, int mode) h->cerrno = CSYSERR; return -1; } - if (mode == CS_SERVER && listen(h->iofile, 3) < 0) + /* Allow a maximum-sized backlog of waiting-to-connect clients */ + if (mode == CS_SERVER && listen(h->iofile, SOMAXCONN) < 0) { h->cerrno = CSYSERR; return -1;