Better timeouts handling in HttpTunnel