On 13/06/2013 20:34, John Zavgren wrote:
Greetings:
Why does the procedure:
Java_java_net_PlainDatagramSocketImpl_datagramSocketCreate(...), defined
in the file: jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c,
close the given socket before returning after an error in some cases,
but not others? Shouldn't the behaviour be the same throughout the
procedure? I think this behaviour should be: throw exception, close
socket, return.
Yes, it looks like close is missing in a few places (but probably hasn't
been noticed as it's unlikely that the setsockopt will fail).
-Alan