FAQ

[Thrift-dev] [jira] [Created] (THRIFT-1517) TTransport.ReadAll() should set exception type to EndOfFile

Roger Meier (Resolved) (JIRA)
Feb 19, 2012 at 6:55 pm
[ https://issues.apache.org/jira/browse/THRIFT-1517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Meier resolved THRIFT-1517.
---------------------------------

Resolution: Fixed

Thanks, committed.
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
Attachments: THRIFT-1517.patch


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
reply

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 4 | next ›

1 user in discussion

Hudson (Commented) (JIRA): 4 posts