[SNMP4J] Unnecessary SNMP retries after a response has been received ?

koen.janssens at alcatel.be koen.janssens at alcatel.be
Wed Mar 1 11:56:42 CET 2006


Hello

I'm sending an SNMP message with retry value of 3. 

The agent react slow (say: the response time is twice the snmp timeout 
used by the client).  So the client sends the first message, times out, 
sends the second message. After that is receives a response. (from the 
first request). I would expect that the client would stop here, but it 
seems that he sends the third retry anyhow, although he already received 
an answer. 

I played a bit with it and it seems that as soon as one retry is send, the 
client will send ALL the retries, wheter or not the server replies in 
between. 
I dived in the code and I think it's related to the fact that a new 
PendingRequest instance is created for each retry, but only the first one 
is set to 'finished' in case a response arrives.

I'm using SNMP4j 1.6d



More information about the SNMP4J mailing list