TTransport.ReadAll() should set exception type to EndOfFile
-----------------------------------------------------------
Key: THRIFT-1517
URL: https://issues.apache.org/jira/browse/THRIFT-1517
Project: Thrift
Issue Type: Bug
Components: C# - Library
Affects Versions: 0.8
Reporter: Stefan Gmeiner
Priority: Minor
The TTransport.ReadAll() throws a TTransportException(string) if read returns
<= 0. The exception text is "Cannot read, Remote side has closed." but the
exception type is not set. To allow checking for EOF condition in catch blocks
I suggest to set the type to TTransportException.ExceptionType.EndOfFile. BTW
this is the same as in the C++ library.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira