Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5188

Occasional ERROR_INSUFFICIENT_BUFFER at WinHttpQueryHeaders()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: Delphi - Library
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Calls WinHttpQueryHeaders() sometimes return error 122 (ERROR_INSUFFICIENT_BUFFER) even if the buffer is large enough, leading TWinHTTPRequestImpl.QueryTotalResponseSize() to fail..

      According to the docs, WINHTTP_QUERY_FLAG_NUMBER always returns a 32 bit number (which it indeed does), but for some strange reason since win 10 build 18636.815 passing a DWORD sized buffer is sometimes not enough anymore

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              jensg Jens Geyer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: