Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1467

Socket 's' in the 'BinHTTPURLInputStream' constructor is never closed when an exception occurs.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: 2.6.0
    • Component/s: Utilities
    • Labels:
      None

      Description

      When an exception occurs in the constructor of the class BinHTTPURLInputStream, the socket opened in the call to 'socket' is never closed.
      I´m calling closesocket before every throw, but considering a socket object maybe better.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rogerioac Rogério Corrêa
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: