Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6360

[classlib][luni]SocketTest and UnixSocketTest failed on AIX, because AIX do NOT support connect to port 0

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 5.0M12
    • Classlib
    • None
    • AIX
    • Patch Available

    Description

      SocketTest failed on AIX at the statement "Socket s = new Socket("0.0.0.0", 0, false);" which create a socket in local and connect to IP address and port specified (0.0.0.0:0), which in turn actually connect to (machineIP:0) in PlainSocketImpl.java

      However AIX and some other Unix platform do NOT support connect to port 0.
      If you try to connect to your mahchine with port 0 in C program will get EADDRNOTAVAIL error on AIX and zos but it works well on Linux.

      Attachments

        1. 6360.diff
          3 kB
          Ray Chen
        2. 6360_v2.diff
          3 kB
          Ray Chen

        Activity

          People

            odeakin Oliver Deakin
            chleicdl Ray Chen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified