You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2020/04/27 19:07:00 UTC
[jira] [Updated] (THRIFT-5188) Occasional ERROR_INSUFFICIENT_BUFFER
at WinHttpQueryHeaders()
[ https://issues.apache.org/jira/browse/THRIFT-5188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer updated THRIFT-5188:
-------------------------------
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
was:Since {{WinHttpQueryHeaders()}} sometimes returns error 122 (ERROR_INSUFFICIENT_BUFFER) even if the buffer is large enough. 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
> Occasional ERROR_INSUFFICIENT_BUFFER at WinHttpQueryHeaders()
> -------------------------------------------------------------
>
> Key: THRIFT-5188
> URL: https://issues.apache.org/jira/browse/THRIFT-5188
> Project: Thrift
> Issue Type: Bug
> Components: Delphi - Library
> Reporter: Jens Geyer
> Priority: Major
>
> 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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)