You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Kevin Clark (JIRA)" <ji...@apache.org> on 2008/07/29 00:18:34 UTC

[jira] Closed: (THRIFT-75) While sending a message, if a struct serialization raises an exception, the transport should be closed

     [ https://issues.apache.org/jira/browse/THRIFT-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Clark closed THRIFT-75.
-----------------------------

    Resolution: Fixed

In r680538

> 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
>         Attachments: 0001-rb-Ensure-the-transport-is-closed-if-an-exception-i.patch
>
>
> 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.