You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2016/03/06 22:45:51 UTC
thrift git commit: THRIFT-3704 Treat the case where we are not able
to refill the buffer the same as the EOL case.
Repository: thrift
Updated Branches:
refs/heads/master 35b4465ab -> af9d2ac69
THRIFT-3704 Treat the case where we are not able to refill the buffer the same as the EOL case.
Client: C++
Transport: HTTP
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/af9d2ac6
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/af9d2ac6
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/af9d2ac6
Branch: refs/heads/master
Commit: af9d2ac69e6638066db75654ba289bc7d98777a5
Parents: 35b4465
Author: Pascal Bach <pa...@siemens.com>
Authored: Thu Mar 3 14:08:30 2016 +0100
Committer: Roger Meier <ro...@apache.org>
Committed: Sun Mar 6 22:44:13 2016 +0100
----------------------------------------------------------------------
lib/cpp/src/thrift/transport/THttpTransport.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/af9d2ac6/lib/cpp/src/thrift/transport/THttpTransport.cpp
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/transport/THttpTransport.cpp b/lib/cpp/src/thrift/transport/THttpTransport.cpp
index a466ff6..f93df23 100644
--- a/lib/cpp/src/thrift/transport/THttpTransport.cpp
+++ b/lib/cpp/src/thrift/transport/THttpTransport.cpp
@@ -212,7 +212,7 @@ void THttpTransport::refill() {
httpBuf_[httpBufLen_] = '\0';
if (got == 0) {
- throw TTransportException("Could not refill buffer");
+ throw TTransportException(TTransportException::END_OF_FILE, "Could not refill buffer");
}
}