Igor Lesik created THRIFT-1849:
----------------------------------
Summary: 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
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 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