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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9076ee479889a2d7de6fc6a9af7c3c856f303af1ed46d8ed28cc94309cf605a
4
- data.tar.gz: ab281fa64baf771715c6f7cf41fa2c9595e852738025e8ba8f29d63eed6a4aa7
3
+ metadata.gz: d4d6bbf24fdc6b3ec8fe5caad8fba23c912f8aa182f824d0be7027914c1d1edc
4
+ data.tar.gz: c536a6554a200b62b0d0648ef097bd40b947e06d958588e53fc23a617e3066e8
5
5
  SHA512:
6
- metadata.gz: 9eb776464a5a3e14b0e19789ed099e23a7e7bf07cbedc5b3d1061e0af53c53dcf5e6ddb44535783b752dfa85d7ab626083b6f2cb59b6df75bc2f74c55b3f1953
7
- data.tar.gz: a20bfc6ee9d94fb0df58e3578dffabcffb2f4dd0c7280b0abde1318560ed393595b7a1988f5f11bb68e1a3fed20e251c0c59d2fae75e3431e877fd7cbe21e857
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
- @idle_timeout = (idle_timeout || ENV.fetch('STREAM_IDLE_TIMEOUT', nil) || 55).to_i
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 || 55).to_i
147
+ @idle_timeout = (idle_timeout || 25).to_i
146
148
  @connect_timeout = (connect_timeout || 10).to_i
147
149
  end
148
150
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GetStreamRuby
4
4
 
5
- VERSION = '11.0.0'
5
+ VERSION = '11.0.1'
6
6
 
7
7
  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.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-17 00:00:00.000000000 Z
11
+ date: 2026-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv