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

TBufferedTransport gets in invalid state on read/write errors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: Go - Library
    • Labels:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: