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

TEST_BUG: 1000 ms is not enough for Socket.connect(InetSocketAddress, timeout) on slow boards in Xcomp mode

    XMLWordPrintable

Details

    Description

      Test java/net/Socket/B6210227.java fails with the stack trace listed below if value of 1000 is passed to Socket.connect() as a timeout and passes if the value is more, e.g. 5000 or without timeout

      Noticed on linux-arm-vfp-hflt only, but suspect this is possible on all embedded platforms

      java.net.SocketTimeoutException
      at java.net.SocksSocketImpl.remainingMillis(SocksSocketImpl.java:111)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      at java.net.Socket.connect(Socket.java:579)
      at B6210227.main(B6210227.java:43)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:744)

      Attachments

        Activity

          People

            Unassigned Unassigned
            rmatafon Roman Matafonov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: