Skip to content

Commit

Permalink
Set ETAG verification timeout to 1s
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Aug 22, 2015
1 parent 46ce8c9 commit 8700662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('"')

Expand Down

0 comments on commit 8700662

Please sign in to comment.