fix config and add timeout for thrift rpc