redis-client 0.14.0 → 0.14.1

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
  SHA256:
3
- metadata.gz: ac50722e5156b95e037fb5fd933cb804a3d52d0d767faa2bbddaccc7cbd38d07
4
- data.tar.gz: 0a1645c3788dd195bf3567e14c0ba508b892357991359297c002c84bd2796e2e
3
+ metadata.gz: e9858303eff06d56f8e144eb7033995fc92839c41fe39d0bda6f1d9c2fed91e9
4
+ data.tar.gz: a4f4ca2073a32e28932c58e537963a2f0b2321e36ca472c6edc9edab1b29122b
5
5
  SHA512:
6
- metadata.gz: 0c93ddbae9ffdd770589eb6003eee594dc902a8d2698c99c38878b923ac80a91aa6a43892d015d9a4ba52ef19300c95970a8947e25f1844c4c01d4b88ff9d9ae
7
- data.tar.gz: a06dd7eaa65ccf8544b4f04f7beffe2580d139783770170fcf76348c5760f78c5baa0d77e734a31111c720df6458bb8112a64960316618b831fdb6059b625963
6
+ metadata.gz: 3c20b17e4587980ed89e0877b20cb9aee7d16365401127cfdc3b4f451f7706bf338988e97ac9d1e62d33c9af5b45ebfb3c35310205fbd309995ace46c3b85fce
7
+ data.tar.gz: 21ed1731b716f1bd6e525b638b7715683979860faa0d14f2fc6f210c4d185a95d2329650b56cf731734d22d7008cdadccc2055a8d5ff7a332b043836e0d39b75
data/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
1
  # Unreleased
2
2
 
3
+ # 0.14.1
4
+
5
+ - Include the timeout value in TimeoutError messages.
6
+ - Fix connection keep-alive on FreeBSD. #102.
7
+
3
8
  # 0.14.0
4
9
 
10
+ - Implement Sentinels list automatic refresh.
5
11
  - hiredis binding now implement GC compaction and write barriers.
6
12
  - hiredis binding now properly release the GVL around `connect(2)`.
7
13
  - hiredis the client memory is now re-used on reconnection when possible to reduce allocation churn.
data/Gemfile.lock CHANGED
@@ -1,16 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- redis-client (0.14.0)
4
+ redis-client (0.14.1)
5
5
  connection_pool
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  ast (2.4.2)
11
- benchmark-ips (2.11.0)
11
+ benchmark-ips (2.12.0)
12
12
  byebug (11.1.3)
13
- connection_pool (2.3.0)
13
+ connection_pool (2.4.0)
14
14
  hiredis (0.6.3)
15
15
  hiredis (0.6.3-java)
16
16
  minitest (5.15.0)
@@ -38,7 +38,7 @@ GEM
38
38
  rubocop-minitest (0.19.1)
39
39
  rubocop (>= 0.90, < 2.0)
40
40
  ruby-progressbar (1.11.0)
41
- stackprof (0.2.23)
41
+ stackprof (0.2.24)
42
42
  toxiproxy (2.0.2)
43
43
  unicode-display_width (2.2.0)
44
44
 
@@ -70,9 +70,9 @@ class RedisClient
70
70
  return total
71
71
  end
72
72
  when :wait_readable
73
- @io.to_io.wait_readable(@read_timeout) or raise ReadTimeoutError
73
+ @io.to_io.wait_readable(@read_timeout) or raise(ReadTimeoutError, "Waited #{@read_timeout} seconds")
74
74
  when :wait_writable
75
- @io.to_io.wait_writable(@write_timeout) or raise WriteTimeoutError
75
+ @io.to_io.wait_writable(@write_timeout) or raise(WriteTimeoutError, "Waited #{@write_timeout} seconds")
76
76
  when nil
77
77
  raise Errno::ECONNRESET
78
78
  else
@@ -137,10 +137,10 @@ class RedisClient
137
137
  return if !strict || remaining <= 0
138
138
  when :wait_readable
139
139
  unless @io.to_io.wait_readable(@read_timeout)
140
- raise ReadTimeoutError unless @blocking_reads
140
+ raise ReadTimeoutError, "Waited #{@read_timeout} seconds" unless @blocking_reads
141
141
  end
142
142
  when :wait_writable
143
- @io.to_io.wait_writable(@write_timeout) or raise WriteTimeoutError
143
+ @io.to_io.wait_writable(@write_timeout) or raise(WriteTimeoutError, "Waited #{@write_timeout} seconds")
144
144
  when nil
145
145
  raise EOFError
146
146
  else
@@ -152,7 +152,7 @@ class RedisClient
152
152
  private_constant :KEEP_ALIVE_TTL
153
153
  private_constant :KEEP_ALIVE_PROBES
154
154
 
155
- if %i[SOL_SOCKET TCP_KEEPIDLE TCP_KEEPINTVL TCP_KEEPCNT].all? { |c| Socket.const_defined? c } # Linux
155
+ if %i[SOL_TCP SOL_SOCKET TCP_KEEPIDLE TCP_KEEPINTVL TCP_KEEPCNT].all? { |c| Socket.const_defined? c } # Linux
156
156
  def enable_socket_keep_alive(socket)
157
157
  socket.setsockopt(Socket::SOL_SOCKET, Socket::SO_KEEPALIVE, true)
158
158
  socket.setsockopt(Socket::SOL_TCP, Socket::TCP_KEEPIDLE, KEEP_ALIVE_INTERVAL)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RedisClient
4
- VERSION = "0.14.0"
4
+ VERSION = "0.14.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-10 00:00:00.000000000 Z
11
+ date: 2023-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool