[ 
https://issues.apache.org/jira/browse/THRIFT-2073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13701327#comment-13701327
 ] 

Qiang Li commented on THRIFT-2073:
----------------------------------

bug in THttpTransport.cpp
uint32_t THttpTransport::readMoreData() {
  uint32_t size;

  // Get more data!
  refill();

  if (readHeaders_) {
    readHeaders();
  }

  if (chunked_) {
    size = readChunked();
  } else {
    size = readContent(contentLength_);
++    readHeaders_ = true;
  }
--  readHeaders_ = true;
  return size;
}
                
> Thrift C++ THttpClient error: cannot refill buffer
> --------------------------------------------------
>
>                 Key: THRIFT-2073
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2073
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.9
>         Environment: One http thrift server is implemented in java. I use 
> THttpClient( in java or python) to call the server and everything works well. 
> However, if I use THttpClient(in C++), sometimes the client got the error 
> "cannot refill buffer". Is it a known issue or is there a patch? 
> BTW: The Thrift versions  for both server and client we used is 0.9.0. 
> Thanks a lot.
>            Reporter: he 
>            Priority: Blocker
>
> One http thrift server is implemented in java. I use THttpClient( in java or 
> python) to call the server and everything works well. However, if I use 
> THttpClient(in C++), sometimes the client got the error "cannot refill 
> buffer". Is it a known issue or is there a patch? 
> BTW: The Thrift versions  for both server and client we used is 0.9.0. 
> Thanks a lot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to