Set timeout to HTTP connections