I’m writing python client using thrift, but I can’t find any available option to set rpc time out.
My client code goes below:
socket = TSocket.TSocket(address, port)
transport = TTransport.TBufferedTransport(socket)
protocol = TBinaryProtocol.TBinaryProtocol(transport)
server = Client.Client(protocol)
transport.open()
You can use
socket.setTimeout()method.