Should do yes.
The simplest place to do it is probably in fwdConnectStart, like how it
is already done for retried connections (see the end of
fwdServerClosed).
-- Henrik Nordstrom Squid hacker Tewari, Vijay wrote: > > Thank you very much for the information. I shall > try and use the eventAdd() to schedule it later. > > As I see it the only time I will be able to > detect that a connection is being attempted to the > overloaded server will be when I am in fwdStart > attempting to connect to the loaded server. Should > I at that time use eventAdd() to reschedule fwdStart() > for this connection at a later time ? > > Thanks > > Regards > Vijay > > -----Original Message----- > From: Henrik Nordstrom [mailto:hno@hem.passagen.se] > Sent: Saturday, May 27, 2000 3:58 AM > To: Tewari, Vijay > Cc: squid-dev@squid-cache.org > Subject: Re: fwdStart > > You could make use of the time event handlers to do this. > > when you detect that the connection request should be throttled then > issue a eventAdd() call to add a event handler for starting the > connection at a later time. > > (time events is sort of the equivalence of a sleep() call in normal > programming) > > -- > Henrik Nordstrom > Squid hackerReceived on Wed May 31 2000 - 11:13:41 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:27 MST