THRIFT-1517 TTransport.ReadAll() should set exception type to EndOfFile
Patch: Stefan Gmeiner

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1291039 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/csharp/src/Transport/TTransport.cs b/lib/csharp/src/Transport/TTransport.cs
index 520ba46..3fbc5d6 100644
--- a/lib/csharp/src/Transport/TTransport.cs
+++ b/lib/csharp/src/Transport/TTransport.cs
@@ -53,7 +53,9 @@
 				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;
 			}