getstream-ruby 11.0.0 → 11.0.1
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/lib/getstream_ruby/client.rb +1 -0
- data/lib/getstream_ruby/configuration.rb +4 -2
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4d6bbf24fdc6b3ec8fe5caad8fba23c912f8aa182f824d0be7027914c1d1edc
|
|
4
|
+
data.tar.gz: c536a6554a200b62b0d0648ef097bd40b947e06d958588e53fc23a617e3066e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b51a4eddac9bb0e90fc5871f07236077701c37b74a79f583b96a9f00dc170eb671ff25cdee632fd75ac0eb2529ac46b8bebf3a3caf59a4e4655561633527a96
|
|
7
|
+
data.tar.gz: 2ec1e43078cef984faa2317e69ddd16eb7818c80b9cb68472aba4e42fde09802ccb29000091836d810fbff316aaac9be6154e15cbe7cb970b40f6cef6f8dbcc6
|
|
@@ -325,6 +325,7 @@ module GetStreamRuby
|
|
|
325
325
|
|
|
326
326
|
# Default: net_http_persistent with the 5-knob config.
|
|
327
327
|
# Never set Connection: close; net_http_persistent keeps connections alive natively.
|
|
328
|
+
# idle_timeout must be below the GCP SSL-proxy idle (~30s); AWS ALB is 60s.
|
|
328
329
|
idle = @configuration.idle_timeout
|
|
329
330
|
connection.adapter :net_http_persistent, pool_size: @configuration.max_conns_per_host do |http|
|
|
330
331
|
|
|
@@ -137,12 +137,14 @@ module GetStreamRuby
|
|
|
137
137
|
env_request_timeout = ENV.fetch('STREAM_REQUEST_TIMEOUT', nil) || ENV.fetch('STREAM_TIMEOUT', nil)
|
|
138
138
|
@request_timeout = (request_timeout || timeout || env_request_timeout || 30).to_i
|
|
139
139
|
@max_conns_per_host = (max_conns_per_host || ENV.fetch('STREAM_MAX_CONNS_PER_HOST', nil) || 5).to_i
|
|
140
|
-
|
|
140
|
+
# 25s sits under GCP SSL-proxy idle (~30s) and AWS ALB idle (60s) so
|
|
141
|
+
# net_http_persistent drops the conn before the LB does (CHA-4943).
|
|
142
|
+
@idle_timeout = (idle_timeout || ENV.fetch('STREAM_IDLE_TIMEOUT', nil) || 25).to_i
|
|
141
143
|
@connect_timeout = (connect_timeout || ENV.fetch('STREAM_CONNECT_TIMEOUT', nil) || 10).to_i
|
|
142
144
|
else
|
|
143
145
|
@request_timeout = (request_timeout || timeout || 30).to_i
|
|
144
146
|
@max_conns_per_host = (max_conns_per_host || 5).to_i
|
|
145
|
-
@idle_timeout = (idle_timeout ||
|
|
147
|
+
@idle_timeout = (idle_timeout || 25).to_i
|
|
146
148
|
@connect_timeout = (connect_timeout || 10).to_i
|
|
147
149
|
end
|
|
148
150
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: getstream-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 11.0.
|
|
4
|
+
version: 11.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GetStream
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dotenv
|