Skip to content

Commit

Permalink
- Allowing maxconns to be set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
gneumann committed May 15, 2009
1 parent e3a6cef commit 1d59aca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2009-05-15 Gustaf Neumann <[email protected]>

* nsd/pools.c:
Allowing maxconns to be set to 0

2009-05-14 Gustaf Neumann <[email protected]>

* nsd/httptime.c:
Expand Down
6 changes: 3 additions & 3 deletions nsd/pools.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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 ) {
Expand Down

0 comments on commit 1d59aca

Please sign in to comment.