another scenario - cache load never gets called

Kathy McLeod <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <OF5564D637.CE109DED-ON86257713.005ECF17-86257713.006079C7@us.ibm.com>
Hi -

For the case where I am checking a date on a file (or in this case, a flag
indicating whether table data has changed), I have to set the
    cache->flags |= NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD;

as well as
    cache->flags |= NETSNMP_CACHE_DONT_FREE_EXPIRED;
    cache->flags |= NETSNMP_CACHE_DONT_AUTO_RELEASE;

as is mentioned in the tutorial.  Otherwise, the free gets called before I
make my check in the load routine.  Or was the idea to make the check in
the free routine?

Anyway, first GET after the load fails the same way as when I don't set the
flags - same as the other scenario.  FYI.

Thanks.


Kathy McLeod


------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.