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

Occasional ERROR_INSUFFICIENT_BUFFER at WinHttpQueryHeaders()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • Delphi - Library
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: