You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jing Wang (JIRA)" <ji...@apache.org> on 2015/06/26 10:59:04 UTC

[jira] [Updated] (THRIFT-3205) TCompactProtocol return a wrong error when the io.EOF happens

     [ https://issues.apache.org/jira/browse/THRIFT-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jing Wang updated THRIFT-3205:
------------------------------
    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)

  was: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)


> TCompactProtocol return a wrong error when the io.EOF happens
> -------------------------------------------------------------
>
>                 Key: THRIFT-3205
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3205
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Library
>    Affects Versions: 0.9.2
>            Reporter: Jing Wang
>             Fix For: 0.9.3
>
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)