proxy_service 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proxy_service.rb +1 -2
- data/lib/proxy_service/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 793aab6348b3c20900c94308d3a30f158043d9ec
|
4
|
+
data.tar.gz: 5723dad70f776dd4f68cb4bf7fb2448d407e1734
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 250af7703a6b1a9a659266658488018c9d164ba8be44aab6d85e5777a0a842e55254e66d82fcae392657ab4ed1a2313700c04c3c61ea7c3d6bbd485521161a32
|
7
|
+
data.tar.gz: 88053537ef2b1e8b6b56cd562052d93f208deecb72c183358f124e15b4f306fb69fbe232307133ed7b6cb873f5b5f54fb74cf9b8db0c73605db9d44f9dc34858
|
data/lib/proxy_service.rb
CHANGED
@@ -39,13 +39,12 @@ class ProxyService
|
|
39
39
|
agent.set_proxy(proxy)
|
40
40
|
yield agent
|
41
41
|
proxy.reset_failures
|
42
|
-
rescue
|
42
|
+
rescue
|
43
43
|
if proxy.failures >= MAX_FAILURES
|
44
44
|
proxy.blocked!
|
45
45
|
else
|
46
46
|
proxy.increment_failures
|
47
47
|
end
|
48
|
-
puts "ERROR: #{e.message}"
|
49
48
|
ensure
|
50
49
|
proxy.release
|
51
50
|
end
|