Threads?

Frank Fock Frank.Fock____t-online.de
Tue Feb 27 01:32:10 CET 2001


Hi James,

Are you using _THREADS? If so, why do you "go back to the main
loop2 instead of waiting for your data? If you "go back to the main
loop" it implies that the request is answered. That's why you get
the described error. So, do not return until you got the data.

Hope this helps.

Regards,
Frank

"Nakamura, James" wrote:

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




More information about the AGENTPP mailing list