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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 5.0M15
    • Classlib
    • None
    • Patch Available
    • 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.

      Attachments

        1. 6586.patch
          3 kB
          Catherine Hope

        Activity

          People

            regis_xu Regis Xu
            chope Catherine Hope
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: