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:
b405ca6
)
THRIFT-1517 TTransport.ReadAll() should set exception type to EndOfFile
author
Roger Meier
<roger@apache.org>
Sun, 19 Feb 2012 18:53:08 +0000
(18:53 +0000)
committer
Roger Meier
<roger@apache.org>
Sun, 19 Feb 2012 18:53:08 +0000
(18:53 +0000)
Patch: Stefan Gmeiner
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1291039
13f79535
-47bb-0310-9956-
ffa450edef68
lib/csharp/src/Transport/TTransport.cs
patch
|
blob
|
history
diff --git
a/lib/csharp/src/Transport/TTransport.cs
b/lib/csharp/src/Transport/TTransport.cs
index
520ba46
..
3fbc5d6
100644
(file)
--- a/
lib/csharp/src/Transport/TTransport.cs
+++ b/
lib/csharp/src/Transport/TTransport.cs
@@
-53,7
+53,9
@@
namespace Thrift.Transport
ret = Read(buf, off + got, len - got);
if (ret <= 0)
{
- throw new TTransportException("Cannot read, Remote side has closed");
+ throw new TTransportException(
+ TTransportException.ExceptionType.EndOfFile,
+ "Cannot read, Remote side has closed");
}
got += ret;
}