You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2015/06/26 21:59:04 UTC
[jira] [Resolved] (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 ]
Jens Geyer resolved THRIFT-3205.
--------------------------------
Resolution: Fixed
Committed.
PS: Error checking in Go is so easy, 'cause you dont have those ugly exceptions ... ;-)
> 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
> Assignee: Jens Geyer
> 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)