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.

        1.
        Replace wildcard address with loopback or local host in tests - part 1 Sub-task Resolved Daniel Fuchs  
        2.
        Replace wildcard address with loopback or local host in tests - part 2 Sub-task Resolved Daniel Fuchs  
        3.
        Replace wildcard address with loopback or local host in tests - part 3 Sub-task Resolved Aleksej Efimov  
        4.
        Replace wildcard address with loopback or local host in tests - part 4 Sub-task Resolved Daniel Fuchs  
        5.
        Replace wildcard address with loopback or local host in tests - part 5 Sub-task Resolved Daniel Fuchs  
        6.
        Replace wildcard address with loopback or local host in tests - part 6 Sub-task Resolved Aleksej Efimov  
        7.
        Replace wildcard address with loopback or local host in tests - part 7 Sub-task Resolved Aleksej Efimov  
        8.
        Replace wildcard address with loopback or local host in tests - part 8 Sub-task Resolved Daniel Fuchs  
        9.
        Replace wildcard address with loopback or local host in tests - part 9 Sub-task Resolved Aleksej Efimov  
        10.
        Replace wildcard address with loopback or local host in tests - part 10 Sub-task Resolved Daniel Fuchs  
        11.
        Replace wildcard address with loopback or local host in tests - part 11 Sub-task Resolved Daniel Fuchs  
        12.
        Replace wildcard address with loopback or local host in tests - part 12 Sub-task Resolved Daniel Fuchs  
        13.
        Replace wildcard address with loopback or local host in tests - part 13 Sub-task Resolved Daniel Fuchs  
        14.
        Replace wildcard address with loopback or local host in tests - part 14 Sub-task Resolved Aleksej Efimov  
        15.
        Replace wildcard address with loopback or local host in tests - part 15 Sub-task Resolved Daniel Fuchs  
        16.
        Replace wildcard address with loopback or local host in tests - part 16 Sub-task Resolved Daniel Fuchs  
        17.
        Replace wildcard address with loopback or local host in tests - part 17 Sub-task Resolved Daniel Fuchs  
        18.
        Replace wildcard address with loopback or local host in tests - part 18 Sub-task Resolved Patrick Concannon (Inactive)  
        19.
        Replace wildcard address with loopback or local host in tests - part 19 Sub-task Resolved Julia Boes (Inactive)  
        20.
        Replace wildcard address with loopback or local host in tests - part 20 Sub-task Resolved Daniel Fuchs  
        21.
        Replace wildcard address with loopback or local host in tests - part 21 Sub-task Resolved Daniel Fuchs  
        22.
        Replace wildcard address with loopback or local host in tests - part 22 Sub-task Resolved Daniel Fuchs  
        23.
        Replace wildcard address with loopback or local host in tests - part 23 Sub-task Resolved Daniel Fuchs  
        24.
        Fix some instabilities in a few networking tests Sub-task Resolved Daniel Fuchs  

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

              Created:
              Updated:
              Resolved: