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 2012/02/19 19:53:08 UTC

svn commit: r1291039 - /thrift/trunk/lib/csharp/src/Transport/TTransport.cs

Author: roger
Date: Sun Feb 19 18:53:08 2012
New Revision: 1291039

URL: http://svn.apache.org/viewvc?rev=1291039&view=rev
Log:
THRIFT-1517 TTransport.ReadAll() should set exception type to EndOfFile
Patch: Stefan Gmeiner

Modified:
    thrift/trunk/lib/csharp/src/Transport/TTransport.cs

Modified: thrift/trunk/lib/csharp/src/Transport/TTransport.cs
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/csharp/src/Transport/TTransport.cs?rev=1291039&r1=1291038&r2=1291039&view=diff
==============================================================================
--- thrift/trunk/lib/csharp/src/Transport/TTransport.cs (original)
+++ thrift/trunk/lib/csharp/src/Transport/TTransport.cs Sun Feb 19 18:53:08 2012
@@ -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;
 			}