Hi Felix, Thank you for reporting those bugs. They have been recoreded as SFJ-77 (renewSocketAfterException) and SFJ-78.
The latest SNAPSHOT build contains fixes for both in a few hours. Best regards, Frank Am 06.09.2013 16:11, schrieb Felix Kaiser:
Hi, looks like my previous email didn't get through. Thanks for providing SNMP4J as free software! Here are two small issues: 1. When binding a socket, port 0 means that a random free port is to be selected. (Quite useful when spawning SNMP agents for automated integration tests.) However, org.snmp4j.transport.UdpTransportMapping#getAddress / #getListenAddress (side note: why have two methods?) will always return the original UdpAddress with port 0, instead of getting the data from socket.getLocalAddress()/.getLocalPort(). You can work around by subclassing DefaultUdpTransportMapping and getting it directly from the socket, of course, but... 2. In org.snmp4j.transport.DefaultUdpTransportMapping#renewSocketAfterException where you create new sockets, you only pass the port - you forgot to pass the address... Greetings Felix _______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j
-- --- AGENT++ Maximilian-Kolbe-Str. 10 73257 Koengen, Germany https://agentpp.com Phone: +49 7024 8688230 Fax: +49 7024 8688231 _______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j
