summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2003-08-07 15:31:20 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2003-08-07 15:31:20 +0000
commit7eb4eba3819c3ab6845e448cae0abefad1150bd8 (patch)
tree08fc3ba62abd73ae0ae5cf2a115dfa4ef0333ce0 /src
parent630b99334c830cce334fc6edaff10f88437c960a (diff)
downloadtinyproxy-7eb4eba3819c3ab6845e448cae0abefad1150bd8.tar.gz
tinyproxy-7eb4eba3819c3ab6845e448cae0abefad1150bd8.zip
# Merged in changes from the stable 1.6 branch.
Diffstat (limited to '')
-rw-r--r--src/child.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/child.c b/src/child.c
index 2aba1a3..f7ddf23 100644
--- a/src/child.c
+++ b/src/child.c
@@ -1,4 +1,4 @@
-/* $Id: child.c,v 1.12 2003-07-31 23:44:52 rjkaes Exp $
+/* $Id: child.c,v 1.13 2003-08-07 15:31:20 rjkaes Exp $
*
* Handles the creation/destruction of the various children required for
* processing incoming connections.
@@ -208,13 +208,12 @@ child_main(struct child_s* ptr)
SERVER_DEC();
handle_connection(connfd);
+ ptr->connects++;
if (child_config.maxrequestsperchild != 0) {
- ptr->connects++;
-
DEBUG2("%u connections so far...", ptr->connects);
- if (ptr->connects == child_config.maxrequestsperchild - 1) {
+ if (ptr->connects == child_config.maxrequestsperchild) {
log_message(LOG_NOTICE,
"Child has reached MaxRequestsPerChild (%u). Killing child.",
ptr->connects);