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

TBufferedTransport gets in invalid state on read/write errors

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      Go's TBufferedTransport can enter an invalid state after an error occurs while calling read, write, or flush. This is because TBufferedTransport uses a bufio.ReadWriter, which "caches" the error returned by a call to read or write such that subsequent calls return the same error. This can be problematic if you wish to reuse the transport after a failed read or write. The solution is to reset the reader/writer on failed calls.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tylertreat Tyler Treat
            tylertreat Tyler Treat
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment