[
https://issues.apache.org/jira/browse/THRIFT-1849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James E. King, III reassigned THRIFT-1849:
------------------------------------------
Assignee: James E. King, III
> after transport->open() throws its internal state set to "open", as result
> isOpen returs true and next open() goes thru when it shall not
> -----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: THRIFT-1849
> URL: https://issues.apache.org/jira/browse/THRIFT-1849
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Library
> Affects Versions: 0.9
> Reporter: Igor Lesik
> Assignee: James E. King, III
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Title tells it all.
> {noformat}
> m_rmt_socket = boost::shared_ptr<apache::thrift::transport::TSocket>
> (new apache::thrift::transport::TSocket(m_rmt_socket_path));
> m_rmt_transport = boost::shared_ptr<apache::thrift::transport::TTransport>
> (new apache::thrift::transport::TBufferedTransport(m_rmt_socket));
> m_rmt_protocol = boost::shared_ptr<apache::thrift::protocol::TProtocol>
> (new apache::thrift::protocol::TBinaryProtocol(m_rmt_transport));
> {noformat}
> I use Unix Domain sockets.
> Workaround: once thrown by transport->open exception is caught call
> transport->close and then you can call transport->open again safely
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)