Threads?

Nakamura, James naka____Metricom.com
Tue Feb 27 01:05:05 CET 2001


My current setup with the agent is that it is a standalone process that
talks via a socket to the process that we get
mib data from. When I get a request, the agent processes the request up to
the grabbing of data, from there,
I send a request to the other process and go back to the main loop until I
get the data back from the other
process. When I get data from the socket, I unpack that data and then fill
in the value member and call MibLeaf::get_request();

For single Mib gets, this works just fine. The problem is bulk gets and
snmpwalks. It seems that the request
object gets removed from the RequestList after the first get_request gets
processed and we get a log message:
RequestList::Can't Find Request ID (###). Where ### is the identifier of the
Request object. 

Is there some sort of Thread fix or other way that I need to use to fix this
problem? It seems that it should be able
to handle this, but probably needs some sort of asynchronous handler in the
library to avoid this problem. 

Thanks in advance...

James Nakamura
naka at metricom.com
Work like you don't need the money. Love like you've never been hurt. Dance
like nobody is watching. -- Mark Twain 




More information about the AGENTPP mailing list