[SNMP4J] A bug or not ??
yielruse
yielruse at 126.com
Fri Nov 11 07:24:38 CET 2005
Hi,
I used "org.snmp4j.Snmp.send(PDU, Target)" to get a device's sysName(with retries=2, and snmp_timeout=3000ms). The operation succeeded at the first request but it has sent the same PDU (with the same RequestID) three times and the interval was 3000ms. It should just send one request PDU not three.
In my opinion that is a bug, but I want to confirm it.
Why this happened ?
It's all because that the inner class "SyncResponseListener" of the class "Snmp" does not invoke "Snmp.cancle(..)" when it receives the first response PDU.
And I think it will make a memery leak when the program invokes the "send(PDU, Target)" many many times
Am I right?
Regards.
Yielruse
More information about the SNMP4J
mailing list