splitclient-rb 8.11.1.pre.beta1-java → 8.11.1.pre.rc1-java

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: 91de48719fc97eb68e981de8723b662c12a1f17901b3d7824656b28e15b9d280
4
- data.tar.gz: 29093048e75b06ee0f9e0571e334e6e138daf75264bd005324b1d5ca9f315bee
3
+ metadata.gz: fa72e6febcfebdd1571db001701ff1ff09ee710e55cd23f0426f9af9930aced2
4
+ data.tar.gz: 429f8b7bd743faebe5c162cfeb7783843bd07cc8cd51f20f8549e4ffbfbc9755
5
5
  SHA512:
6
- metadata.gz: 98cfd22217681674d5d800030231bd286488041bfc7c91b35ed86cbbed67f1dcdf3ca9f25c5035e7a163d0a3a94986efd61d405e1e6e8545df87dc444422e01c
7
- data.tar.gz: 22dec0083c54840c07cced8de89adce7f42db2a25fbf268e25129044215ff872e2c78da5e49a0646af1cc5f8a32a64b00886b3705e3d2b5a7fcb9a2f4e68a3b7
6
+ metadata.gz: 360996c5a1e3e5902d5b71713ed6092df144370fa22a9ffe4456834d0350d7f7e3e04d558fe74cc6833ace13db48a248139024b91efd923ed7a8a62c599d4b83
7
+ data.tar.gz: 45cb3c63979482e66976dbdf2eae62512cbb30310ba4b7809934e397e1e8548c009170471d0765ebd9f12711530a764bd40683f557e2d1b3e3ff848be161b9bd
@@ -10,7 +10,7 @@ module SplitIoClient
10
10
  module EventSource
11
11
  class Client
12
12
  DEFAULT_READ_TIMEOUT = 70
13
- CONNECT_TIMEOUT = 30_000
13
+ CONNECT_TIMEOUT = 30
14
14
  OK_CODE = 200
15
15
  KEEP_ALIVE_RESPONSE = "c\r\n:keepalive\n\n\r\n".freeze
16
16
  ERROR_EVENT_TYPE = 'error'.freeze
@@ -47,7 +47,7 @@ module SplitIoClient
47
47
  @connected.make_false
48
48
  @socket.sync_close = true if @socket.is_a? OpenSSL::SSL::SSLSocket
49
49
  @socket.close
50
- @config.logger.debug("SSEClient socket state #{@socket.state}") if @socket.is_a? OpenSSL::SSL::SSLSocket && @config.debug_enabled
50
+ @config.logger.debug("SSEClient socket state #{@socket.state}") if @socket.is_a?(OpenSSL::SSL::SSLSocket) && @config.debug_enabled
51
51
  rescue StandardError => e
52
52
  @config.logger.error("SSEClient close Error: #{e.inspect}")
53
53
  end
@@ -94,7 +94,10 @@ module SplitIoClient
94
94
  partial_data = @socket.readpartial(10_000)
95
95
  read_first_event(partial_data, latch)
96
96
 
97
- raise 'eof exception' if partial_data == :eof
97
+ if partial_data == :eof
98
+ @config.logger.error("SSE recived EOF unexpectedly")
99
+ return Constants::PUSH_RETRYABLE_ERROR
100
+ end
98
101
  rescue IO::WaitReadable => e
99
102
  @config.logger.debug("SSE client IO::WaitReadable transient error: #{e.inspect}") if @config.debug_enabled
100
103
  IO.select([@socket], nil, nil, @read_timeout)
@@ -108,7 +111,7 @@ module SplitIoClient
108
111
  return Constants::PUSH_RETRYABLE_ERROR
109
112
  rescue EOFError => e
110
113
  @config.logger.error("SSE read operation EOF Exception!: #{e.inspect}")
111
- raise 'eof exception'
114
+ return Constants::PUSH_RETRYABLE_ERROR
112
115
  rescue Errno::EBADF, IOError => e
113
116
  @config.logger.error("SSE read operation EBADF or IOError: #{e.inspect}")
114
117
  return Constants::PUSH_RETRYABLE_ERROR
@@ -126,8 +129,6 @@ module SplitIoClient
126
129
  rescue Errno::EBADF
127
130
  @config.logger.debug("SSE socket is not connected (Errno::EBADF)") if @config.debug_enabled
128
131
  break
129
- rescue RuntimeError
130
- raise 'eof exception'
131
132
  rescue Exception => e
132
133
  @config.logger.debug("SSE socket is not connected: #{e.inspect}") if @config.debug_enabled
133
134
  break
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '8.11.1-beta1'
2
+ VERSION = '8.11.1-rc1'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splitclient-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.11.1.pre.beta1
4
+ version: 8.11.1.pre.rc1
5
5
  platform: java
6
6
  authors:
7
7
  - Split Software
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-07-16 00:00:00.000000000 Z
10
+ date: 2026-07-17 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: allocation_stats