Harmony
  1. Harmony
  2. HARMONY-6586

[classlib][luni] java.net.ServerSocket.accept throws BindException when the accept fails with ECONNABORTED

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0M15
    • Component/s: Classlib
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Moderate

      Description

      Socket accept calls should be repeated if the accept system call fails with errno ECONNABORTED, instead of the current behaviour which throws a java.net.BindException if the accept fails for any reason. In cases where the accept fails with a different error the RI throws a SocketException. This problem was found running Tomcat regression tests, but I don't have a simple testcase to reproduce the scenario.

      1. 6586.patch
        3 kB
        Catherine Hope

        Activity

          People

          • Assignee:
            Regis Xu
            Reporter:
            Catherine Hope
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development