faraday_persistent_excon 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcf8b17c5b371de5744c937229974e5e2b68881d
|
4
|
+
data.tar.gz: 4cb644e52301a7d938fb2b56bf21c2e36930320c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b9303432e6dcb300b0a47aad3db9b8ebbf63b319f3ac1a16401937cb8f629700d8e884e1e3e1583643e9a1a47307326e04e15c26558de159088b6675fc0c0ad
|
7
|
+
data.tar.gz: 393aeef700b32f7e47bd035e122be9777e234fd08d74ec6061092f209e57c61776fbf1add05bf8209fe47c29a5c665db3f6c462cd96526258c2e9d72c2b83676
|
@@ -10,15 +10,7 @@ module FaradayPersistentExcon
|
|
10
10
|
pool = self.connection_pool_for(url)
|
11
11
|
|
12
12
|
if pool
|
13
|
-
|
14
|
-
pool.with(&block)
|
15
|
-
rescue ::Excon::Errors::SocketError
|
16
|
-
pool.shutdown { |conn| conn.reset }
|
17
|
-
self.__pools.delete(url)
|
18
|
-
raise
|
19
|
-
rescue ::ConnectionPool::PoolShuttingDownError => err
|
20
|
-
raise Faraday::Error::ConnectionFailed, err
|
21
|
-
end
|
13
|
+
pool.with(&block)
|
22
14
|
else
|
23
15
|
# No pool configured. Use normal connection
|
24
16
|
block.call(::Excon.new(url, persistent: false))
|