You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Andrew Selder (JIRA)" <ji...@apache.org> on 2013/04/01 21:09:16 UTC

[jira] [Created] (THRIFT-1911) IOError not being caught in socket.rb

Andrew Selder created THRIFT-1911:
-------------------------------------

             Summary: IOError not being caught in socket.rb
                 Key: THRIFT-1911
                 URL: https://issues.apache.org/jira/browse/THRIFT-1911
             Project: Thrift
          Issue Type: Bug
          Components: Ruby - Library
    Affects Versions: 0.9
            Reporter: Andrew Selder


In Thrift::Socket#write at line 63, an IOError is raised if the socket is not open.

However this raise is outside of the being/rescue block of the method, so this IOError propagates up instead of Thrift::TransportException. There is a rescue class that rescues StandardError and wraps in a TransportException, but is is not applied to this first line of the method.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira