freight_kit 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/freight_kit/http_client.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 654499f996bc56f1f5de3bb76a35fa741620a112b07ae14f5bf9955cbb13905e
|
|
4
|
+
data.tar.gz: 6e7362fcc10f25baec9aed2fddd314f2f4a96e6f315524fd49b9377c68894e5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26450318b8a6d9a3b107b781efe0d85ee5e18aed8ebde54161be1c9b5266a19902c886113f8a776b0f2d708a6bb6006ec2c6c39b35ab2df6ecb2019b175e5153
|
|
7
|
+
data.tar.gz: e422938482548ea69ce4e8cb70428a981c7031497b3956f841507c3ec3f0150fa98499196da2d1618631afaa46e47a78afdfd1e5db3382ceb41b23b175b72a2d
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.27
|
|
@@ -9,7 +9,7 @@ module FreightKit
|
|
|
9
9
|
class HTTPClient
|
|
10
10
|
# Seconds. A slow carrier must not hold the caller's threads, so the total covers every retry: one connect plus one
|
|
11
11
|
# read. Callers waiting on slow APIs pass a longer `read_timeout:`, which raises the total to match.
|
|
12
|
-
TIMEOUTS = { connect_timeout: 5, read_timeout:
|
|
12
|
+
TIMEOUTS = { connect_timeout: 5.seconds, read_timeout: 1.minute, total_request_timeout: 65.seconds, write_timeout: 1.minute }.freeze
|
|
13
13
|
USER_AGENT = "freight_kit/#{VERSION} #{HTTPX::Options::USER_AGENT}".freeze
|
|
14
14
|
|
|
15
15
|
@sessions = Concurrent::Map.new
|