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

Reply via email to