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

        Catherine Hope created issue -
        Catherine Hope made changes -
        Field Original Value New Value
        Attachment 6586.patch [ 12449554 ]
        Regis Xu made changes -
        Assignee Regis Xu [ regis_xu ]
        Regis Xu made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.0M15 [ 12315054 ]
        Resolution Fixed [ 1 ]
        Catherine Hope made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development