async-io 1.18.3 → 1.18.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/io/stream.rb +3 -1
- data/lib/async/io/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9b90003500ec4d5f02d1f8ff39fd03ddd75c05988002ed38518e3f41b310e19
|
4
|
+
data.tar.gz: 6f2963634feaa4adb76146cf69ef981e3d5d184e53afe75026041f9ff0bebe8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 476989a61aaf04cbde81d7b470e536670ac1a86e5309355dc2712915ee2977999bb8ae2618f34d5d9ef6679dfcc7f0c7ec4b480b671e7129472d3e66075a57a5
|
7
|
+
data.tar.gz: 2ad64389173a06b27db796bf61c2310348c8c79b9c09e2146cd5ed63ffd9c3bd2d3d12a058f41c531bcfb5918764a92e91077a28a7ec572c3869b45a65aaf793
|
data/lib/async/io/stream.rb
CHANGED
@@ -89,7 +89,9 @@ module Async
|
|
89
89
|
split_offset = pattern.bytesize - 1
|
90
90
|
|
91
91
|
until index = @read_buffer.index(pattern, offset)
|
92
|
-
offset =
|
92
|
+
offset = @read_buffer.size - split_offset
|
93
|
+
|
94
|
+
offset = 0 if offset < 0
|
93
95
|
|
94
96
|
return unless fill_read_buffer
|
95
97
|
end
|
data/lib/async/io/version.rb
CHANGED