While sending a message, if a struct serialization raises an exception, the 
transport should be closed
------------------------------------------------------------------------------------------------------

                 Key: THRIFT-75
                 URL: https://issues.apache.org/jira/browse/THRIFT-75
             Project: Thrift
          Issue Type: Bug
          Components: Library (Ruby)
            Reporter: Kevin Ballard


If a struct contains a field with the wrong type (say, 5 in a string field), it 
will blow up while serializing. If this happens while sending a message, the 
client itself blows up. If this exception doesn't take down the application, 
the transport is now left in a state where half of a message has been written. 
If another message is then sent, the transport is flushed with a malformed 
message.

In this scenario, the client should close the transport if it encounters an 
error serializing the struct.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to