nonnative 1.38.0 → 1.39.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/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/nonnative/fault_injection_proxy.rb +11 -5
- data/lib/nonnative/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05eabed13ed77a7eea02eb898db4a670c53286639168190c1f068e8683606e9d
|
|
4
|
+
data.tar.gz: a50f29b97792cf8248187e30f3aabfb5d204fae05235821b5b358176feca7997
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbed996363616c31404a70079bdfa475aa8917b8f7edc492af04cff257db468599ffc04ab68ac452f47071bee00ffefc0d4e49186f9c58c7cb8a242bb0ea9240
|
|
7
|
+
data.tar.gz: 2190e7f96f504645c9e4069660d3af06309a08e48ecb13984656dcc68ee93edd813bbf8ab275eea7f3fee9c7efe2fa9a2c22df9017b5fbfcc673c244a35c0fba
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.39.0](https://github.com/alexfalkowski/nonnative/compare/v1.38.0...v1.39.0) (2021-04-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* log interruptions ([#75](https://github.com/alexfalkowski/nonnative/issues/75)) ([bde3e05](https://github.com/alexfalkowski/nonnative/commit/bde3e052b422a0ca659cfb54fcf3ca9d8a1fb20c))
|
|
11
|
+
|
|
5
12
|
## [1.38.0](https://github.com/alexfalkowski/nonnative/compare/v1.37.0...v1.38.0) (2021-04-22)
|
|
6
13
|
|
|
7
14
|
|
data/Gemfile.lock
CHANGED
|
@@ -51,7 +51,6 @@ module Nonnative
|
|
|
51
51
|
accept_connection local_socket
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
thread.report_on_exception = false
|
|
55
54
|
connections[thread.object_id] = thread
|
|
56
55
|
end
|
|
57
56
|
end
|
|
@@ -60,16 +59,23 @@ module Nonnative
|
|
|
60
59
|
id = Thread.current.object_id
|
|
61
60
|
socket_info = local_socket.inspect
|
|
62
61
|
|
|
63
|
-
connect
|
|
62
|
+
error = connect(local_socket)
|
|
63
|
+
if error
|
|
64
|
+
logger.error "could not handle the connection for '#{id}' with socket '#{socket_info}' and error '#{error}'"
|
|
65
|
+
else
|
|
66
|
+
logger.info "handled connection for '#{id}' with socket '#{socket_info}'"
|
|
67
|
+
end
|
|
68
|
+
|
|
64
69
|
connections.delete(id)
|
|
65
|
-
ensure
|
|
66
|
-
logger.info "handled connection for #{id} with socket #{socket_info}"
|
|
67
70
|
end
|
|
68
71
|
|
|
69
72
|
def connect(local_socket)
|
|
70
73
|
pair = SocketPairFactory.create(read_state, service.proxy)
|
|
71
|
-
|
|
72
74
|
pair.connect(local_socket)
|
|
75
|
+
rescue StandardError => e
|
|
76
|
+
local_socket.close
|
|
77
|
+
|
|
78
|
+
e
|
|
73
79
|
end
|
|
74
80
|
|
|
75
81
|
def close_connections
|
data/lib/nonnative/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nonnative
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.39.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Falkowski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-04-
|
|
11
|
+
date: 2021-04-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|