This repository was archived by the owner on Dec 10, 2018. It is now read-only.
This repository was archived by the owner on Dec 10, 2018. It is now read-only.
Closed
Description
Version 0.3.8 python 2.7, transport.close() either does not close the transport or incorrectly returns its status
from thriftpy.thrift import TClient
from thriftpy.transport import TFramedTransport, TSocket
from thriftpy.protocol import TCompactProtocol
_transport_class = TFramedTransport
_protocol_class = TCompactProtocol
socket = TSocket(host, port)
transport = _transport_class(socket)
protocol = _protocol_class(transport, decode_response=False)
print 'Transport open:', transport.is_open() # False
transport.open()
print 'Transport open:', transport.is_open() # True
transport.close()
print 'Transport open:', transport.is_open() # True!!
transport.open()
print 'Transport open:', transport.is_open() # True
Metadata
Metadata
Assignees
Labels
No labels