[prev in list] [next in list] [prev in thread] [next in thread]
List: squid-dev
Subject: Re: fwdStart
From: Henrik Nordstrom <hno () hem ! passagen ! se>
Date: 2000-05-31 17:09:00
Message-ID: 3935472C.174DC97 () hem ! passagen ! se
[Download RAW message or body]
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 hacker
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic