Skip to content

Commit

Permalink
Complain about blocked only on the first pass through the queue
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 11, 2014
1 parent bf6f67f commit 230494f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/threads.c
Expand Up @@ -576,7 +576,7 @@ static int request_dequeue(REQUEST **prequest)
thread_pool.active_threads++;

blocked = time(NULL);
if ((blocked - request->timestamp) > 5) {
if (!request->proxy && (blocked - request->timestamp) > 5) {
total_blocked++;
if (last_complained < blocked) {
last_complained = blocked;
Expand Down

0 comments on commit 230494f

Please sign in to comment.