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

NetStd JSON Protocol left in incorrect state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.14.0
    • netstd - Library
    • None

    Description

      This is the exact same problem as #3743.

      When a message writeEnd or readBegin are called the context is not cleaned leading to possible undefined state of the context.

      The error was visible for me when i would make 2 RPC calls with the same protocol instance, producing invalid messages like [<message1>],[<message2>]. The comma is a syntax error and invalid JSON and protocol.

      Resetting the context as is done for java fixes the issue.

      Attachments

        Issue Links

          Activity

            People

              ptsneves Paulo Neves
              ptsneves Paulo Neves
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m