Add connection timeouts to the HTTP connections to avoid starvation.