I was browsing the code...
I found at 'helper.c' this:
295 static void
296 Enqueue(helper * hlp, helper_request * r)
297 {
298 dlink_node *link = memAllocate(MEM_DLINK_NODE);
299 dlinkAddTail(r, link, &hlp->queue);
300 hlp->stats.queue_size++;
301 if (hlp->stats.queue_size < hlp->n_running)
302 return;
303 if (squid_curtime - hlp->last_queue_warn < 600)
304 return;
305 if (shutting_down || reconfiguring)
306 return;
307 hlp->last_queue_warn = squid_curtime;
308 debug(14, 0) ("WARNING: All %s processes are busy.\n",
hlp->id_name);
309 debug(14, 0) ("WARNING: %d pending requests queued\n",
hlp->stats.queue_size);
310 if (hlp->stats.queue_size > hlp->n_running * 2)
311 fatalf("Too many queued %s requests", hlp->id_name);
<============================
312 debug(14, 1) ("Consider increasing the number of %s processes
in your config file.\n", hlp->id_name);
313 }
My question is: what's the value of 'hlp->stats.queue_size' at
initialization ?
I just don't find it... and so it depends only on the compiler, or with
memory allocation too ?
Maybe initializing this at 'helperCreate' may work.
Cheers,
Felipe.
Christopher Raven wrote:
>
> Felipe Zipitria wrote:
> >
> > Hi.
> >
> > I've got some strange problems with my squid (2.2-STABLE5).
> > The machine is a Dell PowerEdge 2200 with Solaris 7.
> >
> > The problem is when I reboot the machine. The squid server refuse to
> > start with this fatal error message:
> >
> > FATAL: Too many queued dnsserver requests
> >
> > This happens only if I restart the squid cache, or when I reboot the
> > machine (of course, it restarts the cache :) ).
> > But, some time after I can startup normally.
> >
> > This is not listed at 'Solaris system weirdness'...
> >
> > Any ideas ?
> >
> > Felipe.
>
> Hmm, similar to my problem - my machine 'fell over' and on reboot
> started to give errors. Maybe there is some kind of inbuilt
> _request_listing/record_ I can reset? Something that tells Squid it
> can't have any more DNSservers?
>
> My Squid starts OK though, it just refuses to serve pages - users get a
> 'page contains no data' error when they try and access the cache. The
> console returns the 'too many dnsserver requests' error.
>
> Anybody got any ideas?
>
> Cheers,
> Chris R.
>
> --
> _/_/_/_/_/_/_/_/_/_/_/_/_/
> chris@cian.net
> http://www.cian.net/
> _/_/_/_/_/_/_/_/_/_/_/_/_/
Received on Tue Dec 28 1999 - 15:28:26 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:07 MST