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

TCompactProtocol return a wrong error when the io.EOF happens

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.2
    • 0.9.3
    • Go - Library
    • None

    Description

      When Transport return a io error, TCompactProtocol.ReadMessageBegin method will not process these error firstly, and cause the protocol returned a wrong error:
      fmt.Errorf("Expected protocol id %02x but got %02x", COMPACT_PROTOCOL_ID, protocolId)

      Attachments

        Activity

          People

            wangjild Jing Wang
            wangjild Jing Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: