Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
a2f0286f
Commit
a2f0286f
authored
Jul 23, 2003
by
Per Cederqvist
Browse files
(queue_add): Update statistics.
(queue_remove): Ditto. (parse_unparsed): Ditto.
parent
722aa4d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/connections.c
View file @
a2f0286f
/*
* $Id: connections.c,v 0.10
1
2003/07/
14 10:56:29
ceder Exp $
* $Id: connections.c,v 0.10
2
2003/07/
23 08:23:05
ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -83,6 +83,7 @@
#include "eintr.h"
#include "text-garb.h"
#include "timeval-util.h"
#include "stats.h"
oop_source_sys
*
kom_server_oop_src
=
NULL
;
struct
isc_mcb
*
kom_server_mcb
=
NULL
;
...
...
@@ -145,6 +146,8 @@ queue_add(Connection *c)
queue_last
->
queue_next
=
c
;
queue_last
=
c
;
update_stat
(
STAT_RUN_QUEUE
,
1
);
update_stat
(
STAT_RUN_QUEUE_ENTER
,
1
);
}
static
void
...
...
@@ -165,6 +168,8 @@ 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
...
...
@@ -433,6 +438,7 @@ parse_unparsed(Connection *client)
reply
(
client
,
status
,
&
result
);
client
->
penalty
+=
param
.
penalty_per_call
;
free_parsed
(
client
);
update_stat
(
STAT_PROCESSED_CALLS
,
1
);
end_of_atomic
();
return
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment