RFR: 8280944: Enable Unix domain sockets in Windows Selector notification mechanism [v2]
Michael McMahon
michaelm at openjdk.java.net
Wed Feb 2 12:02:07 UTC 2022
On Wed, 2 Feb 2022 10:00:33 GMT, Michael McMahon <michaelm at openjdk.org> wrote:
>> src/java.base/windows/classes/sun/nio/ch/PipeImpl.java line 226:
>>
>>> 224: listener.bind(null);
>>> 225: return listener;
>>> 226: } catch (IOException | UnsupportedOperationException e) {}
>>
>> Is it possible for isSupported to return true and open throw UOE?
>
> In practice no. I'll remove the UOE.
Actually, it turns out this is not the entirely true. isSupported can return true, but if the temp directory (where unnamed sockets are created) is set to a non-default filesystem, then UOE does get thrown. We have a test that does this. I'll have to put it back.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7302
More information about the nio-dev
mailing list