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

Investigate which networking tests bind to the wildcard address, and whether they could be changed to bind to the loopback instead.

XMLWordPrintable

      Some networking tests are failing intermittently due to port reuse strategy implemented by the underlying system. Tests that are susceptible to fall awry of this issue are those that create a SocketServer - or HttpServer that bind to the wildcard.

      An example of such tests are java/net/Socket/LingerTest.java and java/net/Socket/ShutdownBoth.java (see for instance JDK-8129315), but a simple grep over the test base reveals that over a hundred of tests are also using `new ServerSocket(0)`

      It would be profitable to find out which tests are creating a ServerSocket or HttpServer that binds to the wildcard address, evaluate whether that usage is legitimate and required, or whether the test could be changed to bind to the loopback instead without changing the semantics of the test, and perhaps bite the bullet and do this change.

        There are no Sub-Tasks for this issue.

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: