Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8234824

java/nio/channels/SocketChannel/AdaptSocket.java fails on Windows 10

    XMLWordPrintable

Details

    • b26
    • windows_10

    Backports

      Description

        timeout: 10
        Read timed out, as expected
        loop: 0
        Read timed out, as expected
        loop: 1
        Read timed out, as expected
        loop: 2
        Read timed out, as expected
        loop: 3
        Read timed out, as expected
        connect failed as expected: java.net.ConnectException: Connection refused: no further information
        ----------System.err:(16/1027)----------
        java.net.SocketTimeoutException: Connect timed out
        at java.base/sun.nio.ch.SocketChannelImpl.finishTimedConnect(SocketChannelImpl.java:1038)
        at java.base/sun.nio.ch.SocketChannelImpl.blockingConnect(SocketChannelImpl.java:1071)
        at java.base/sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:89)
        at AdaptSocket.testConnect(AdaptSocket.java:162)
        at AdaptSocket.main(AdaptSocket.java:205)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
        at java.base/java.lang.Thread.run(Thread.java:832)

        Looks similar to JDK-8234823, adjusting the connect() timeout from 2000 to 2500 makes the test pass.

        Attachments

          Issue Links

            Activity

              People

                michaelm Michael McMahon
                ctornqvi Christian Tornqvist
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: