On 23/08/06, Robert Story <[EMAIL PROTECTED]> wrote:
> I just wonder if the update to the nsCacheTable handles auto-reload caches.

Well, there's a comment in agent/nsCache.c about handling "auto-repeat".
(revision 1.6 - one of yours, Oscar!)

> After updating the value, it should call netsnmp_cache_timer_stop() and
> netsnmp_cache_timer_start().

Nope - it doesn't do that.   Shouldn't be too difficult to add.

A related question - what should happen if someone tries to turn off
an auto-reloading cache (either setting the timeout to 0, or setting
the status to disabled).  Should this perhaps be rejected, or is it
perfectly valid?
   What are the intended semantics associated with an auto-reloading cache?


> DS> And there's certainly no indication of what the difference between
> DS> these two timeouts are, and why they are different.

> It's in ifTable_container_init(), in ifTable_data_access.c.

Ummm... not sure.
It's in _ifTable_container_init, in ifTable_interface.c
Is that the same?


>                                                                The initial 
> value
> in the create is a default, which is overridden later. Probably wouldn't hurt
> to have it use the same define from ifTable_data_access.h.

That would certainly be less confusing!
I'm not sure why this code sets one default timeout value and then
overrides it later.
Why not just set the correct value in the first place?

Dave

-------------------------------------------------------------------------
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