From acae8e4e9d5e47c2cc081ff331dcaebde77bd417 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Thu, 17 Oct 2013 14:45:16 -0700 Subject: [PATCH] Tweaked the request retries logic. We now send more retry requests that are less spaced apart. --- python/ycm/client/base_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ycm/client/base_request.py b/python/ycm/client/base_request.py index 78ac368d..ad3f1fbf 100644 --- a/python/ycm/client/base_request.py +++ b/python/ycm/client/base_request.py @@ -70,7 +70,7 @@ class BaseRequest( object ): headers = HEADERS, timeout = timeout ) - @retries( 3, delay = 0.5 ) + @retries( 5, delay = 0.5, backoff = 1.5 ) def DelayedPostData( data, handler ): return requests.post( _BuildUri( handler ), data = json.dumps( data ),