mardi 9 octobre 2018

How to set RPC timeout in thrift ruby client?

I'm writing python client using thrift, but I can't find any available option to set rpc time out. I am using the default thrift gem, with version 0.10.0

My client code goes below:

t_http_client_transport  = Thrift::HTTPClientTransport.new(BASE_URI + API_END_POINT)
t_json_protocol          = Thrift::JsonProtocol.new(t_http_client_transport)
t_ordering_service_client = TOrderingService::Client.new(t_json_protocol)
t_http_client_transport.open()

Aucun commentaire:

Enregistrer un commentaire