Sync Requests from callbacks wont work (Was: Re: FW: Engine ID automaticdiscovery)

Jochen Katz katz____agentpp.com
Tue Jun 10 23:18:45 CEST 2003


Hi,

I now found the problem: sending sync requests from the callback is not 
allowed in the current snmp++.

SNMPProcessPendingEvents() uses a mutex which is locked during 
callbacks. Sync requests call SNMPBlockForResponse() to wait for the 
response. This method calls SNMPProcessPendingEvents() and the mutex is 
locked twice...

As I don't think, that it is possible to change the locking: use only 
async methods in callbacks.

Regards,
   Jochen






More information about the AGENTPP mailing list