From 870066254cade0d4a61a18fc9e63bb484d10bdd7 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Sat, 22 Aug 2015 00:22:35 -0700 Subject: [PATCH] Set ETAG verification timeout to 1s --- cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache.py b/cache.py index d8b51c9..2fe4275 100755 --- a/cache.py +++ b/cache.py @@ -169,7 +169,7 @@ def probe_etag(url): if not "codeload" in url: url.replace("/github.com/", "/codeload.github.com/") - h = httplib2.Http() + h = httplib2.Http(timeout=1) resp = h.request(url, 'HEAD')[0] return resp["etag"].strip('"')