GitHub user tylertreat-wf opened a pull request: https://github.com/apache/thrift/pull/943
THRIFT-3735 JSON protocol left in incorrect state when an exception is thrown during read or write operations The JSON context stack may be left in an incorrect state when an exception is thrown during read or write operations. This leads to further errors while writing/reading the NEXT message, because incorrect characters may be written or expected. This is related to THRIFT-1473, but there is an additional issue in that the bufio.Writer needs to be reset if an error occurs. @markerickson-wf @stevenosborne-wf You can merge this pull request into a Git repository by running: $ git pull https://github.com/tylertreat-wf/thrift THRIFT-3735 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/thrift/pull/943.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #943 ---- commit f1740ed8faf767a486d2ab38be2401dcb2288cee Author: Tyler Treat <tyler.tr...@webfilings.com> Date: 2016-03-11T21:15:17Z THRIFT-3735 JSON protocol left in incorrect state when an exception is thrown during read or write operations The JSON context stack may be left in an incorrect state when an exception is thrown during read or write operations. This leads to further errors while writing/reading the NEXT message, because incorrect characters may be written or expected. This is related to THRIFT-1473, but there is an additional issue in that the bufio.Writer needs to be reset if an error occurs. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---