You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Yuxuan Wang (Jira)" <ji...@apache.org> on 2020/07/29 16:57:00 UTC

[jira] [Created] (THRIFT-5257) Go THeader implementation doesn't handle endOfFrame correctly

Yuxuan Wang created THRIFT-5257:
-----------------------------------

             Summary: Go THeader implementation doesn't handle endOfFrame correctly
                 Key: THRIFT-5257
                 URL: https://issues.apache.org/jira/browse/THRIFT-5257
             Project: Thrift
          Issue Type: Bug
          Components: Go - Library
    Affects Versions: 0.13.0
            Reporter: Yuxuan Wang
            Assignee: Yuxuan Wang


In the current implementation, we only call endOfFrame when we hit EOF when reading from the frameReader. The problem is in go stdlib the read action finished reading the remaining data from frameReader will not return EOF, the next Read will. This caused us in most cases only call endOfFrame at the beginning of the next frame, which could cause troubles because we didn't read the beginning of the frame properly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)