projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c615c5a
)
Fix suppression of blocked thread messages
author
Alan T. DeKok
<aland@freeradius.org>
Wed, 5 Dec 2012 12:28:24 +0000
(07:28 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Wed, 5 Dec 2012 12:28:24 +0000
(07:28 -0500)
So that it's once per second
src/main/threads.c
patch
|
blob
|
history
diff --git
a/src/main/threads.c
b/src/main/threads.c
index
92ccde6
..
1fd5436
100644
(file)
--- a/
src/main/threads.c
+++ b/
src/main/threads.c
@@
-424,7
+424,7
@@
int request_enqueue(REQUEST *request)
static int request_dequeue(REQUEST **prequest)
{
time_t blocked;
- static time_t last_complained;
+ static time_t last_complained
= 0
;
RAD_LISTEN_TYPE i, start;
REQUEST *request;
reap_children();
@@
-525,6
+525,7
@@
static int request_dequeue(REQUEST **prequest)
blocked = time(NULL);
if ((blocked - request->timestamp) > 5) {
if (last_complained < blocked) {
+ last_complained = blocked;
blocked -= request->timestamp;
} else {
blocked = 0;