Commit a5beecf9 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(queue_add): Don't update STAT_RUN_QUEUE_ENTER.

(queue_remove): Don't update STAT_RUN_QUEUE_LEAVE.
(parse_unparsed): Update STAT_REQUESTS instead of
	STAT_PROCESSED_CALLS.
(get_host_name): Don't update STAT_PROCESSED_DNS.
parent 036162ee
/*
* $Id: connections.c,v 0.103 2003/07/24 08:38:08 ceder Exp $
* $Id: connections.c,v 0.104 2003/07/24 22:05:22 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -147,7 +147,6 @@ queue_add(Connection *c)
queue_last = c;
update_stat(STAT_RUN_QUEUE, 1);
update_stat(STAT_RUN_QUEUE_ENTER, 1);
}
static void
......@@ -169,7 +168,6 @@ queue_remove(Connection *c)
c->queue_prev = NULL;
c->queue_next = NULL;
update_stat(STAT_RUN_QUEUE, -1);
update_stat(STAT_RUN_QUEUE_LEAVE, 1);
}
void
......@@ -435,11 +433,12 @@ parse_unparsed(Connection *client)
case 0 :
/* Parse message. If message is complete call function and reply. */
parse_packet(client);
update_stat(STAT_REQUESTS, 1);
status = call_function(client, &result);
update_stat(STAT_REQUESTS, -1);
reply(client, status, &result);
client->penalty += param.penalty_per_call;
free_parsed(client);
update_stat(STAT_PROCESSED_CALLS, 1);
end_of_atomic();
return TRUE;
......@@ -678,7 +677,6 @@ get_host_name(union isc_address *addr)
res = hostname = isc_gethostname(addr, NULL, 0);
update_stat(STAT_DNS_QUEUE, -1);
update_stat(STAT_PROCESSED_DNS, 1);
if (gettimeofday(&after, NULL) < 0)
kom_log("gettimeofday failed: %s\n", strerror(errno));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment