Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1517

TTransport.ReadAll() should set exception type to EndOfFile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8
    • None
    • C# - Library
    • None
    • Patch Available

    Description

      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.

      Attachments

        1. THRIFT-1517.patch
          0.4 kB
          Stefan Gmeiner

        Activity

          People

            Unassigned Unassigned
            steff Stefan Gmeiner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: