diff --git a/ChangeLog b/ChangeLog index 2d40631..84f0696 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-05-15 Gustaf Neumann + + * nsd/pools.c: + Allowing maxconns to be set to 0 + 2009-05-14 Gustaf Neumann * nsd/httptime.c: diff --git a/nsd/pools.c b/nsd/pools.c index 65a895e..3ee98b7 100644 --- a/nsd/pools.c +++ b/nsd/pools.c @@ -33,7 +33,7 @@ * Routines for the managing the connection thread pools. */ -static const char *RCSID = "@(#) $Header: /Users/dossy/Desktop/cvs/aolserver/nsd/pools.c,v 1.15 2009/01/31 21:23:47 gneumann Exp $, compiled: " __DATE__ " " __TIME__; +static const char *RCSID = "@(#) $Header: /Users/dossy/Desktop/cvs/aolserver/nsd/pools.c,v 1.16 2009/05/15 08:31:27 gneumann Exp $, compiled: " __DATE__ " " __TIME__; #include "nsd.h" @@ -201,8 +201,8 @@ NsTclPoolsObjCmd(ClientData data, Tcl_Interp *interp, int objc, Tcl_Obj **objv) Tcl_SetResult(interp, "timeout cannot be less than 1", TCL_STATIC); return TCL_ERROR; } - if (poolPtr->threads.maxconns < 1) { - Tcl_SetResult(interp, "maxconns cannot be less than 1", TCL_STATIC); + if (poolPtr->threads.maxconns < 0) { + Tcl_SetResult(interp, "maxconns cannot be less than 0", TCL_STATIC); return TCL_ERROR; } if (poolPtr->threads.spread < 0 || poolPtr->threads.spread > 100 ) {