Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
068f416
)
cpp: TTransport: set END_OF_FILE TException code if read returns 0
author
David Reiss
<dreiss@apache.org>
Tue, 9 Mar 2010 05:19:47 +0000
(
05:19
+0000)
committer
David Reiss
<dreiss@apache.org>
Tue, 9 Mar 2010 05:19:47 +0000
(
05:19
+0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920674
13f79535
-47bb-0310-9956-
ffa450edef68
lib/cpp/src/transport/TTransport.h
patch
|
blob
|
history
diff --git
a/lib/cpp/src/transport/TTransport.h
b/lib/cpp/src/transport/TTransport.h
index
eb0d5df
..
f9e20ce
100644
(file)
--- a/
lib/cpp/src/transport/TTransport.h
+++ b/
lib/cpp/src/transport/TTransport.h
@@
-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;
}