You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Qiang Li (JIRA)" <ji...@apache.org> on 2013/07/06 14:37:49 UTC
[jira] [Comment Edited] (THRIFT-2073) Thrift C++ THttpClient error:
cannot refill buffer
[ https://issues.apache.org/jira/browse/THRIFT-2073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13701327#comment-13701327 ]
Qiang Li edited comment on THRIFT-2073 at 7/6/13 12:37 PM:
-----------------------------------------------------------
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;
}
was (Author: writeboard):
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