Ladd <ladd@...> writes:

I think I found the it!!  DefaultTcpTransportMapping has this method:

    private void processPending() {
        
      synchronized (pending) {
        for (int i=0; i<pending.size(); i++) {
          SocketEntry entry = pending.getFirst();
          /*
           *   ... continue on to process entry
           */

Works great if there's only one pending entry.  But the bug occurs when
there are two or more due getFirst() being called over and over.

I change it to entry = pending.get(i) and reran my test.  So far so good!

Please confirm.

Thanks!

- Ladd

_______________________________________________
SNMP4J mailing list
[email protected]
https://oosnmp.net/mailman/listinfo/snmp4j

Reply via email to