nonnative 3.15.0 → 3.17.0
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/.circleci/config.yml +1 -1
- data/Gemfile.lock +1 -1
- data/lib/nonnative/invalid_data_socket_pair.rb +2 -1
- data/lib/nonnative/pool.rb +2 -0
- data/lib/nonnative/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: cfb0d140b1fe5374f9d34b8e6accf2fc21ded8f8bba720cea25a166897b2886e
|
|
4
|
+
data.tar.gz: '0409f68ad074bc744aac66c324d5c5c1d38fa13b2085485562c1c2039435866f'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1ba38459a5762fd599ff0a44e5dcc4e2be6caad32f7006fd0d1c4a68c1970652929649021cfa735f64550aa14224c25a0bfafdddc3e210573549249590a31ad
|
|
7
|
+
data.tar.gz: 2a0ace60a99ad96a97d7cf65e3282ee3fbe6e66b58c222bf101588fde85b52eca517d9e55bd7e8be81fd523c38f03cf415434539b91428a78d71e75802e7e8ad
|
data/.circleci/config.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -46,7 +46,8 @@ module Nonnative
|
|
|
46
46
|
payload = data.delete_suffix(delimiter)
|
|
47
47
|
|
|
48
48
|
# A delimiter-only response still needs one byte we can corrupt without losing the terminator.
|
|
49
|
-
|
|
49
|
+
# Use a mutable buffer: the frozen string literal cannot be mutated by #setbyte below.
|
|
50
|
+
payload = +"\0" if payload.empty?
|
|
50
51
|
|
|
51
52
|
# Flip the first byte so the payload is definitely wrong without mangling the whole
|
|
52
53
|
# response structure and turning an invalid response into a timeout.
|
data/lib/nonnative/pool.rb
CHANGED
|
@@ -191,6 +191,8 @@ module Nonnative
|
|
|
191
191
|
|
|
192
192
|
checks = service.readiness.map { |readiness| Nonnative::TCPProbe.new(readiness, timeout: service.timeout) }
|
|
193
193
|
errors << service_readiness_error(service, checks) unless checks.all?(&:ready?)
|
|
194
|
+
rescue StandardError => e
|
|
195
|
+
errors << port_error(:start, service, e)
|
|
194
196
|
end
|
|
195
197
|
end
|
|
196
198
|
|
data/lib/nonnative/version.rb
CHANGED