[JDK-8257080] Java does not try all DNS results when opening a socket
Daniel Fuchs
daniel.fuchs at oracle.com
Thu Dec 17 13:45:30 UTC 2020
Hi Simone,
We are investigating introducing a Service Provider interface
which would allow an application to replace the default
built-in implementation that blocks inside the kernel.
There is no plan to introduce any public asynchronous API to perform
address resolution at this point. With the advent of Loom and
virtual threads I'm not sure there would be much motivation for
that anyway.
best regards,
-- daniel
On 16/12/2020 19:59, Simone Bordet wrote:
> Hi,
>
> On Wed, Dec 16, 2020 at 5:55 PM Aleks Efimov <aleksej.efimov at oracle.com> wrote:
>>
>> Hi Benjamin,
>>
>> As Alan stated I'm working on adding an SPI [1] which will provide a
>> possibility to alter how host names and IP addresses are resolved by JDK
>> platform.
>> I believe it would be possible to use this mechanism for addressing
>> issue described in JDK-8257080.
>
> Is it hopefully going to be non-blocking?
>
More information about the net-dev
mailing list