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

Xerces livelocks while reading external DTD if socket closes prematurely

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.1, 3.1.1
    • 3.1.2, 3.2.0
    • Utilities
    • None
    • Windows 7 64bit, VS 2008 SP1, distributed and self-built binaries

    Description

      When loading an external DTD and if the socket on the other end closes before any data is read, xerces can get into a live-lock situation.
      If the OS call "recv" returns 0, which it can, the loop in BinHTTPInputStreamCommon::sendRequest will spin forever.

      The attached contains an example and sample content which demonstrates the issue.

      Attachments

        1. XercesNetAccessorIssue.zip
          5 kB
          Charlie Lawrence

        Activity

          People

            amassari Alberto Massari
            clawrence Charlie Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: