suggestions for improvement in java.net APIs
Miika Komu
mkomu at cs.hut.fi
Sat May 4 05:22:06 PDT 2013
Howdy,
we investigated the APIs of java.net (OpenJDK Build b147) and published
our findings in Ottawa Linux Symposium 2012:
http://nw.dreamhosters.com/ols/ols2012/ols2012-komu.pdf
We two types of improvements to java.net disclosed in full detail in
section 4.3.1 of the publication. First, we suggest to fix a bug related
to UDP in multihoming scenarios (i.e., a host has multiple IP
addresses). Second, we suggest improvements that can improve either the
user experience (i.e. by improving latency in IPv6 environments) or
developers (after all, frameworks are a conveniency for the developers).
The suggestions for improvements are briefly summarized below.
Multihoming bug
---------------
* R3.2: Server-side multihoming for UDP does not work properly. The
framework should use SO_BINDTODEVICE option or sendmsg()/recvmsg()
interfaces in a proper way.
Suggested improvements (for better end-user or developer experience)
--------------------------------------------------------------------
* R2.2: The framework does not support parallel DNS look ups over IPv4
and IPv6 to optimize latency
* R3.3: The framework does not support parallel connect() over IPv4 and
IPv6 to minimize the latency for connection set-up
Please refer to section 4.3.4 in the publication for a more elaborate
discussion of the improvements.
More information about the net-dev
mailing list