You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2010/03/09 06:19:48 UTC
svn commit: r920674 -
/incubator/thrift/trunk/lib/cpp/src/transport/TTransport.h
Author: dreiss
Date: Tue Mar 9 05:19:47 2010
New Revision: 920674
URL: http://svn.apache.org/viewvc?rev=920674&view=rev
Log:
cpp: TTransport: set END_OF_FILE TException code if read returns 0
Modified:
incubator/thrift/trunk/lib/cpp/src/transport/TTransport.h
Modified: incubator/thrift/trunk/lib/cpp/src/transport/TTransport.h
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/transport/TTransport.h?rev=920674&r1=920673&r2=920674&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/transport/TTransport.h (original)
+++ incubator/thrift/trunk/lib/cpp/src/transport/TTransport.h Tue Mar 9 05:19:47 2010
@@ -102,7 +102,8 @@ class TTransport {
while (have < len) {
get = read(buf+have, len-have);
if (get <= 0) {
- throw TTransportException("No more data to read.");
+ throw TTransportException(TTransportException::END_OF_FILE,
+ "No more data to read.");
}
have += get;
}