From a70f4a8cb40cc65f468dc6b95e97bcd4f813bee7 Mon Sep 17 00:00:00 2001 From: Alexander Gordeev Date: Tue, 31 Mar 2015 11:27:12 +0300 Subject: [PATCH] [IBP] Increase http request timeout in fuel-agent Previously, it was set to 1 sec and caused to a lot of erroneously closed http connections if the downloading speed goes below 1MiB/s. Setting it to 10 secs will allow to prevent the connection expiration when the momentary network bandwidth is not enough. Related-Bug: #1438265 Change-Id: I2f8d8f9e2f9ed5ab445a10a91efe80cbe8e04295 --- fuel_agent/utils/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fuel_agent/utils/utils.py b/fuel_agent/utils/utils.py index de802ca..eb350d8 100644 --- a/fuel_agent/utils/utils.py +++ b/fuel_agent/utils/utils.py @@ -41,7 +41,10 @@ u_opts = [ ), cfg.FloatOpt( 'http_request_timeout', - default=1.0, + # Setting it to 10 secs will allow fuel-agent to overcome the momentary + # peak loads when network bandwidth becomes as low as 0.1MiB/s, thus + # preventing of wasting too much retries on such false positives. + default=10.0, help='Http request timeout in seconds', ), cfg.FloatOpt(