Patch: Support for DNS round-robin (also IPv4/IPv6) with direct connections

The way how sockets are created in DirectSocketFactory only connects to the first IP address on Apache Harmony (not sure about Sun’s/Open JDK).

The attached patch works around this by adding a pseudo-random round-robin to socket connections.

Feel free to apply to SMACK or to provide criticism.

Kind regards,

Georg Lukas
0001-DirectSocketFactory-perform-DNS-based-round-robin.patch.zip (803 Bytes)

1 Like