Uploaded image for project: 'River (Retired)'
  1. River (Retired)
  2. RIVER-223

test: jtreg/net/jini/jeri/tcp/connectTimeout/TestConnectTimeout fails on Linux

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • jtsk_2.1
    • River_2.1.2
    • other
    • None
    • Linux only

    • 6391265

    Description

      Bugtraq ID 6391265
      The failure of TestConnectTimeout (Linux only, both RH AS3 & SuSE 9.1) are test problems: the test is assuming that a call to a certain bogus address will hang for a while, but it fails quickly with a NoRouteToHostException on those platforms.
      Suggested Fix:
      Fixed by having the test use a socket factory that creates sockets that when a connect timeout is specified, always simulates the appropriate timeout failure mode, even if the connect attempt would have failed for some other reason like NoRouteToHostException.

      Attachments

        Issue Links

          Activity

            People

              peter.jones Peter Jones
              vinodjohnson Thomas Vinod Johnson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: