Skip to content

Connection timeout on Windows #64

@BakkerJan

Description

@BakkerJan

I can't get this to work on my machine. After some hours of vibe-troubleshooting, Claude came to this conclusion:

Jar requires Java 21 (class file version 65.0) — can't downgrade
Ktor CIO hardcodes WEPollSelectorProvider, bypasses JVM SPI (-Djava.nio.channels.spi.SelectorProvider ineffective)
AF_UNIX socket creation succeeds (OSSupportsUnixDomainSockets = True, PowerShell test passes)
AF_UNIX socket connect fails with Invalid argument — exact path: UnixDomainSockets.connect0 in PipeImplInitializerInitializer InitializerLoopbackConnector

java.io.tmpdir override to short path (C:\Temp) has no effect
Affects both Eclipse Adoptium and Microsoft Build of OpenJDK 21
Environment: Windows 11 Enterprise 25H2 build 26200.8037
Fix required: Replace Ktor CIO engine with OkHttp or Apache engine, or catch WEPollSelectorProvider init failure and fall back to WindowsSelectorProvider

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions