1 Index: squid/src/helper.c
2 diff -c squid/src/helper.c:1.34.2.15 squid/src/helper.c:1.34.2.16
3 *** squid/src/helper.c:1.34.2.15 Mon Feb 9 02:03:49 2004
4 --- squid/src/helper.c Thu Mar 11 08:26:30 2004
7 hlp->stats.queue_size++;
8 if (hlp->stats.queue_size < hlp->n_running)
10 ! if (hlp->stats.queue_size < hlp->n_running)
12 if (squid_curtime - hlp->last_queue_warn < 30)
14 if (shutting_down || reconfiguring)
16 - hlp->last_queue_warn = squid_curtime;
17 debug(84, 1) ("WARNING: All %s processes are busy.\n", hlp->id_name);
18 debug(84, 1) ("WARNING: up to %d pending requests queued\n", hlp->stats.max_queue_size);
19 if (hlp->stats.queue_size > hlp->n_running * 2)
20 fatalf("Too many queued %s requests (%d on %d)", hlp->id_name, hlp->stats.queue_size, hlp->n_running);
21 ! if (hlp->stats.max_queue_size > 1)
22 debug(84, 1) ("Consider increasing the number of %s processes to at least %d in your config file.\n", hlp->id_name, hlp->n_running + hlp->stats.max_queue_size);
23 hlp->stats.max_queue_size = hlp->stats.queue_size;
27 hlp->stats.queue_size++;
28 if (hlp->stats.queue_size < hlp->n_running)
30 ! if (hlp->stats.queue_size > hlp->stats.max_queue_size)
31 ! hlp->stats.max_queue_size = hlp->stats.queue_size;
32 if (squid_curtime - hlp->last_queue_warn < 30)
34 if (shutting_down || reconfiguring)
36 debug(84, 1) ("WARNING: All %s processes are busy.\n", hlp->id_name);
37 debug(84, 1) ("WARNING: up to %d pending requests queued\n", hlp->stats.max_queue_size);
38 if (hlp->stats.queue_size > hlp->n_running * 2)
39 fatalf("Too many queued %s requests (%d on %d)", hlp->id_name, hlp->stats.queue_size, hlp->n_running);
40 ! if (squid_curtime - hlp->last_queue_warn < 300)
41 debug(84, 1) ("Consider increasing the number of %s processes to at least %d in your config file.\n", hlp->id_name, hlp->n_running + hlp->stats.max_queue_size);
42 + hlp->last_queue_warn = squid_curtime;
43 hlp->stats.max_queue_size = hlp->stats.queue_size;
49 if (shutting_down || reconfiguring)
51 - hlp->last_queue_warn = squid_curtime;
52 debug(84, 1) ("WARNING: All %s processes are busy.\n", hlp->id_name);
53 debug(84, 1) ("WARNING: up to %d pending requests queued\n", hlp->stats.max_queue_size);
54 ! if (hlp->stats.max_queue_size > 1)
55 debug(84, 1) ("Consider increasing the number of %s processes to at least %d in your config file.\n", hlp->id_name, hlp->n_running + hlp->stats.max_queue_size);
56 hlp->stats.max_queue_size = hlp->stats.queue_size;
61 if (shutting_down || reconfiguring)
63 debug(84, 1) ("WARNING: All %s processes are busy.\n", hlp->id_name);
64 debug(84, 1) ("WARNING: up to %d pending requests queued\n", hlp->stats.max_queue_size);
65 ! if (squid_curtime - hlp->last_queue_warn < 300)
66 debug(84, 1) ("Consider increasing the number of %s processes to at least %d in your config file.\n", hlp->id_name, hlp->n_running + hlp->stats.max_queue_size);
67 + hlp->last_queue_warn = squid_curtime;
68 hlp->stats.max_queue_size = hlp->stats.queue_size;