redis 4.2.4 → 4.2.5
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/CHANGELOG.md +4 -0
- data/lib/redis/connection/ruby.rb +9 -21
- data/lib/redis/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 862e8133262fead707e4ca317b29d0e35425e3a7861ea1a52033bc91ba61bf6d
|
4
|
+
data.tar.gz: 5b2b32250d783fe58b0af54cc386f2568241644a0badc0b7247bb29b1ac94a93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aab289f4f22b2f3a804ca7b0da4cf95e352a8d246611490d8d803edebbbc7e7c299355cd0b90e6f3ac8bc0d11e9bf3792a328c95847d32e1d984729afe66ed2
|
7
|
+
data.tar.gz: d9ec8ba4d314d099e909cdddf6dfb4c3c14b853b46f45c4909ac3ba10fb1880bd9a7b0465257fa91f9a4ea6c9f82723c16c177810ac15c89fab3790d7af31ad0
|
data/CHANGELOG.md
CHANGED
@@ -67,10 +67,13 @@ class Redis
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
def
|
70
|
+
def write(buffer)
|
71
|
+
return super(buffer) unless @write_timeout
|
72
|
+
|
73
|
+
bytes_to_write = buffer.bytesize
|
71
74
|
total_bytes_written = 0
|
72
75
|
loop do
|
73
|
-
case bytes_written = write_nonblock(
|
76
|
+
case bytes_written = write_nonblock(buffer, exception: false)
|
74
77
|
when :wait_readable
|
75
78
|
unless wait_readable(@write_timeout)
|
76
79
|
raise Redis::TimeoutError
|
@@ -83,28 +86,13 @@ class Redis
|
|
83
86
|
raise Errno::ECONNRESET
|
84
87
|
when Integer
|
85
88
|
total_bytes_written += bytes_written
|
86
|
-
|
87
|
-
|
88
|
-
else
|
89
|
+
|
90
|
+
if total_bytes_written >= bytes_to_write
|
89
91
|
return total_bytes_written
|
90
92
|
end
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
94
93
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
data = data.b
|
99
|
-
length = data.bytesize
|
100
|
-
total_count = 0
|
101
|
-
loop do
|
102
|
-
count = _write_to_socket(data)
|
103
|
-
|
104
|
-
total_count += count
|
105
|
-
return total_count if total_count >= length
|
106
|
-
|
107
|
-
data = data.byteslice(count..-1)
|
94
|
+
buffer = buffer.byteslice(bytes_written..-1)
|
95
|
+
end
|
108
96
|
end
|
109
97
|
end
|
110
98
|
end
|
data/lib/redis/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ezra Zygmuntowicz
|
@@ -16,7 +16,7 @@ authors:
|
|
16
16
|
autorequire:
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
|
-
date: 2020-11-
|
19
|
+
date: 2020-11-20 00:00:00.000000000 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: em-synchrony
|
@@ -102,9 +102,9 @@ licenses:
|
|
102
102
|
metadata:
|
103
103
|
bug_tracker_uri: https://github.com/redis/redis-rb/issues
|
104
104
|
changelog_uri: https://github.com/redis/redis-rb/blob/master/CHANGELOG.md
|
105
|
-
documentation_uri: https://www.rubydoc.info/gems/redis/4.2.
|
105
|
+
documentation_uri: https://www.rubydoc.info/gems/redis/4.2.5
|
106
106
|
homepage_uri: https://github.com/redis/redis-rb
|
107
|
-
source_code_uri: https://github.com/redis/redis-rb/tree/v4.2.
|
107
|
+
source_code_uri: https://github.com/redis/redis-rb/tree/v4.2.5
|
108
108
|
post_install_message:
|
109
109
|
rdoc_options: []
|
110
110
|
require_paths:
|