set connection timeout and read timeout for rest api