PlainDatagramSocketImpl questions
Alan Bateman
Alan.Bateman at oracle.com
Thu Jun 13 13:47:12 PDT 2013
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
More information about the net-dev
mailing list