On Wed, 23 Aug 2006 15:50:43 +0100 Dave wrote:
DS> On 23/08/06, Robert Story <[EMAIL PROTECTED]> wrote:
DS> A related question - what should happen if someone tries to turn off
DS> an auto-reloading cache (either setting the timeout to 0, or setting
DS> the status to disabled).  Should this perhaps be rejected, or is it
DS> perfectly valid?

Well, I guess it would stop the timer. Since adding more code to deal with
minimum/maximum timers and/or disallowing disabling would be more work, I say
just let them do it and 'buyer beware'.

DS>    What are the intended semantics associated with an auto-reloading cache?

The cache load routine is called with the frequency specified by the timeout
value.

DS> > DS> And there's certainly no indication of what the difference between
DS> > DS> these two timeouts are, and why they are different.
DS> 
DS> > It's in ifTable_container_init(), in ifTable_data_access.c.
DS> 
DS> Ummm... not sure.
DS> It's in _ifTable_container_init, in ifTable_interface.c
DS> Is that the same?

Nope. the '_' at the start of the routine indicates that it's an internal
routine. The whole xxx_interface.c file, in fact, shouldn't be messed with
except in very rare circumstances.

DS> I'm not sure why this code sets one default timeout value and then
DS> overrides it later.
DS> Why not just set the correct value in the first place?

The timer object is created in the internal interface file, where users aren't
meant to be mucking about. Then a user init routine (in the data_access file)
is called to let the user tweak some parameters.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to