You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/08/09 14:38:18 UTC
[whimsy] branch master updated: see if we can recover from
site-scan timeouts
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 55980c0 see if we can recover from site-scan timeouts
55980c0 is described below
commit 55980c05bb52d947294865135307d775afb5a397
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed Aug 9 10:37:36 2017 -0400
see if we can recover from site-scan timeouts
---
lib/whimsy/cache.rb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/whimsy/cache.rb b/lib/whimsy/cache.rb
index 10d06a8..ef97955 100644
--- a/lib/whimsy/cache.rb
+++ b/lib/whimsy/cache.rb
@@ -118,6 +118,10 @@ class Cache
return uri, response
end
end
+ rescue Net::OpenTimeout
+ # retry timeouts (essentially treat them as self redirects)
+ raise if depth >= 5
+ fetch(uri, options, depth+1)
end
# File cache contains last modified followed by the data
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].