You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Keith Stone (JIRA)" <ji...@apache.org> on 2015/02/18 22:45:11 UTC

[jira] [Created] (THRIFT-3004) Ruby flush transport remembering pathological messages.

Keith Stone created THRIFT-3004:
-----------------------------------

             Summary: Ruby flush transport remembering pathological messages.
                 Key: THRIFT-3004
                 URL: https://issues.apache.org/jira/browse/THRIFT-3004
             Project: Thrift
          Issue Type: Bug
          Components: Ruby - Library
    Affects Versions: 0.9
            Reporter: Keith Stone


The source of this issue is in lib/rb/lib/thrift/transport/http_client_transport.rb

If a client tries to send a pathological message that the server will alway error on in such a way as an exception is raised by the http.post method then the output buffer will never be cleared.

This means the next message will also include the first message in the post, re-causing what ever issue had occurred.

The fix is to move the clearing of the output buffer into an ensure block so that it will be cleared whenever flush is invoked.

This is my first time submitting an issue to apache, I would be happy to submit a patch or attempt to test if someone could help me though the on boarding process.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)