Hi,

    I found if the DefaultUdpTransportMapping.socket closed abnormality, then 
TransportMapping can not close. I checked the code of 
org.snmp4j.transport.DefaultUdpTransportMapping.ListenThread.run() , and found 
setSocketTimeout will throw exception, and the 
DefaultUdpTransportMapping.isListening will always be true.

      try {
        socket.setSoTimeout(getSocketTimeout());
        ........
      }
      catch (SocketException ex) {
        logger.error(ex);
        setSocketTimeout(0); //!!! this line will throw runtimeexecption if 
socket.isclosed .
      }

    somebody help me and explains this?
_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to