rsmp 0.54.1 → 0.54.4
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 +9 -0
- data/Gemfile.lock +27 -21
- data/lib/rsmp/node/protocol.rb +1 -1
- data/lib/rsmp/proxy/modules/acknowledgements.rb +3 -1
- data/lib/rsmp/proxy/modules/send.rb +11 -3
- data/lib/rsmp/proxy/site/modules/aggregated_status.rb +2 -2
- data/lib/rsmp/proxy/supervisor/modules/status_updates.rb +1 -1
- data/lib/rsmp/proxy/supervisor/supervisor_proxy.rb +1 -2
- data/lib/rsmp/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: 02d0895a680af99dc43aa494c8c901d63f00eaf5d554543007bf70b85ba6c41a
|
|
4
|
+
data.tar.gz: 89b2d16f2cea6516567d4062d92d8456204dd29ccdc89e8ffb7ab832038c21b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2b2e1f71684e4e03610bac3d37ab0bf652b1f43999f4c0e784a5af3b8c539fe4c936e5fc88900d9f0cf4992210f7b44c5faa106e5657a1769581e1077bac88b
|
|
7
|
+
data.tar.gz: 1f5b279ef872d275588f19d26ccf61d545f5ee14efce736216c1dea89ee6c1d10c450bfdcd5e5df63f1761af89f31879b6c5015f8f85eaff82318046c325bbcd
|
data/CHANGELOG.md
CHANGED
|
@@ -758,3 +758,12 @@ Initial release.
|
|
|
758
758
|
|
|
759
759
|
## 0.54.1
|
|
760
760
|
- check that sxl version match in version request/response for core < 3.3.0
|
|
761
|
+
|
|
762
|
+
## 0.54.2
|
|
763
|
+
- ensure active subscriptioned are buffered until handshake is complete when reconnecting
|
|
764
|
+
|
|
765
|
+
## 0.54.3
|
|
766
|
+
- update gems
|
|
767
|
+
|
|
768
|
+
## 0.54.4
|
|
769
|
+
- fix acknowledgement registration race
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rsmp (0.54.
|
|
4
|
+
rsmp (0.54.4)
|
|
5
5
|
async (~> 2.45)
|
|
6
6
|
colorize (~> 1.1)
|
|
7
7
|
io-endpoint (~> 0.17)
|
|
@@ -15,13 +15,13 @@ GEM
|
|
|
15
15
|
remote: https://rubygems.org/
|
|
16
16
|
specs:
|
|
17
17
|
ast (2.4.3)
|
|
18
|
-
async (2.
|
|
18
|
+
async (2.46.0)
|
|
19
19
|
console (~> 1.29)
|
|
20
20
|
fiber-annotation
|
|
21
21
|
io-event (~> 1.21)
|
|
22
|
-
bigdecimal (4.1.
|
|
22
|
+
bigdecimal (4.1.3)
|
|
23
23
|
colorize (1.1.0)
|
|
24
|
-
console (1.
|
|
24
|
+
console (1.38.0)
|
|
25
25
|
fiber-annotation
|
|
26
26
|
fiber-local (~> 1.1)
|
|
27
27
|
json
|
|
@@ -30,12 +30,12 @@ GEM
|
|
|
30
30
|
fiber-storage
|
|
31
31
|
fiber-storage (1.0.1)
|
|
32
32
|
hana (1.3.7)
|
|
33
|
-
io-endpoint (0.
|
|
33
|
+
io-endpoint (0.19.0)
|
|
34
34
|
openssl (>= 3.3.0)
|
|
35
|
-
io-event (1.
|
|
35
|
+
io-event (1.22.3)
|
|
36
36
|
io-stream (0.14.0)
|
|
37
37
|
openssl (>= 3.3)
|
|
38
|
-
json (2.
|
|
38
|
+
json (3.2.0)
|
|
39
39
|
json_schemer (2.5.0)
|
|
40
40
|
bigdecimal
|
|
41
41
|
hana (~> 1.3)
|
|
@@ -46,43 +46,49 @@ GEM
|
|
|
46
46
|
logger (1.7.0)
|
|
47
47
|
openssl (4.0.2)
|
|
48
48
|
ostruct (0.6.3)
|
|
49
|
-
parallel (2.
|
|
50
|
-
parser (3.3.
|
|
49
|
+
parallel (2.3.0)
|
|
50
|
+
parser (3.3.14.0)
|
|
51
51
|
ast (~> 2.4.1)
|
|
52
52
|
racc
|
|
53
|
-
prism (1.
|
|
53
|
+
prism (2.1.0)
|
|
54
|
+
prism (2.1.0-arm64-darwin)
|
|
55
|
+
prism (2.1.0-x64-mingw-ucrt)
|
|
56
|
+
prism (2.1.0-x86_64-darwin)
|
|
57
|
+
prism (2.1.0-x86_64-linux-gnu)
|
|
54
58
|
racc (1.8.1)
|
|
55
59
|
rainbow (3.1.1)
|
|
56
60
|
rake (13.4.2)
|
|
57
|
-
regexp_parser (2.
|
|
58
|
-
rubocop (1.
|
|
61
|
+
regexp_parser (2.13.4)
|
|
62
|
+
rubocop (1.93.0)
|
|
59
63
|
json (>= 2.3)
|
|
60
64
|
language_server-protocol (~> 3.17.0.2)
|
|
61
65
|
lint_roller (~> 1.1.0)
|
|
62
66
|
parallel (>= 1.10)
|
|
63
67
|
parser (>= 3.3.0.2)
|
|
64
68
|
rainbow (>= 2.2.2, < 4.0)
|
|
65
|
-
regexp_parser (>= 2.
|
|
66
|
-
rubocop-ast (>= 1.
|
|
69
|
+
regexp_parser (>= 2.11.3, < 3.0)
|
|
70
|
+
rubocop-ast (>= 1.54.0, < 2.0)
|
|
67
71
|
ruby-progressbar (~> 1.7)
|
|
68
72
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
69
|
-
rubocop-ast (1.
|
|
73
|
+
rubocop-ast (1.54.0)
|
|
74
|
+
ast (~> 2.4)
|
|
70
75
|
parser (>= 3.3.7.2)
|
|
71
|
-
prism (
|
|
76
|
+
prism (>= 1.7)
|
|
77
|
+
racc
|
|
72
78
|
rubocop-rake (0.7.1)
|
|
73
79
|
lint_roller (~> 1.1)
|
|
74
80
|
rubocop (>= 1.72.1)
|
|
75
81
|
ruby-progressbar (1.13.0)
|
|
76
82
|
simpleidn (0.3.0)
|
|
77
|
-
sus (0.
|
|
83
|
+
sus (0.38.0)
|
|
78
84
|
sus-fixtures-async (0.2.0)
|
|
79
85
|
async
|
|
80
86
|
sus (~> 0.10)
|
|
81
87
|
thor (1.5.0)
|
|
82
88
|
timecop (0.9.11)
|
|
83
|
-
unicode-display_width (3.
|
|
84
|
-
unicode-emoji (~> 4.
|
|
85
|
-
unicode-emoji (4.
|
|
89
|
+
unicode-display_width (3.3.0)
|
|
90
|
+
unicode-emoji (~> 4.3)
|
|
91
|
+
unicode-emoji (4.3.0)
|
|
86
92
|
|
|
87
93
|
PLATFORMS
|
|
88
94
|
arm64-darwin-23
|
|
@@ -103,4 +109,4 @@ DEPENDENCIES
|
|
|
103
109
|
timecop (~> 0.9)
|
|
104
110
|
|
|
105
111
|
BUNDLED WITH
|
|
106
|
-
4.
|
|
112
|
+
4.1.1
|
data/lib/rsmp/node/protocol.rb
CHANGED
|
@@ -9,7 +9,9 @@ module RSMP
|
|
|
9
9
|
|
|
10
10
|
ack = MessageAck.build_from(original)
|
|
11
11
|
ack.original = original.clone
|
|
12
|
-
send_generated_message ack, "for #{ack.original.type} #{original.m_id_short}"
|
|
12
|
+
delivery = send_generated_message ack, "for #{ack.original.type} #{original.m_id_short}"
|
|
13
|
+
return delivery if delivery.failure?
|
|
14
|
+
|
|
13
15
|
check_ingoing_acknowledged original
|
|
14
16
|
end
|
|
15
17
|
|
|
@@ -10,7 +10,6 @@ module RSMP
|
|
|
10
10
|
written = write_message(message, validate: validate)
|
|
11
11
|
return recover_write_failure(message, written, buffer: buffer) if written.failure?
|
|
12
12
|
|
|
13
|
-
expect_acknowledgement(message)
|
|
14
13
|
distribute(message)
|
|
15
14
|
log_send(message, reason)
|
|
16
15
|
Result.success(Delivery.new(message: message, state: :sent))
|
|
@@ -68,16 +67,25 @@ module RSMP
|
|
|
68
67
|
end
|
|
69
68
|
|
|
70
69
|
def write_protocol(message)
|
|
70
|
+
id = session_id
|
|
71
|
+
# A peer can acknowledge while write_lines is still yielding.
|
|
72
|
+
pending = @awaiting_acknowledgement
|
|
73
|
+
expect_acknowledgement(message)
|
|
71
74
|
@protocol.write_lines(message.json)
|
|
75
|
+
written = true
|
|
72
76
|
Result.success(message)
|
|
73
77
|
rescue IOError, SystemCallError => e
|
|
74
|
-
Result.failure(
|
|
78
|
+
result = Result.failure(
|
|
75
79
|
:disconnected,
|
|
76
80
|
message: "Could not send #{message.type}: #{e.message}",
|
|
77
81
|
source: :transport,
|
|
78
|
-
context: { message: message, session_id:
|
|
82
|
+
context: { message: message, session_id: id },
|
|
79
83
|
cause: e
|
|
80
84
|
)
|
|
85
|
+
close(reason: :transport_failure, failure: result.failure, session_id: id) if session_active?(id)
|
|
86
|
+
result
|
|
87
|
+
ensure
|
|
88
|
+
pending.delete(message.m_id) if !written && pending[message.m_id].equal?(message)
|
|
81
89
|
end
|
|
82
90
|
|
|
83
91
|
def recover_write_failure(message, result, buffer:)
|
|
@@ -78,8 +78,8 @@ module RSMP
|
|
|
78
78
|
attr_reader :site_aggregated_status
|
|
79
79
|
|
|
80
80
|
def complete_initial_status(message)
|
|
81
|
-
return unless core_3_3_0_or_newer? &&
|
|
82
|
-
return unless
|
|
81
|
+
return unless core_3_3_0_or_newer? && state == :connected && message.is_a?(RSMP::AggregatedStatus)
|
|
82
|
+
return unless @component_list_received && @outgoing_watchdog_acknowledged
|
|
83
83
|
|
|
84
84
|
handshake_complete
|
|
85
85
|
end
|
|
@@ -123,7 +123,7 @@ module RSMP
|
|
|
123
123
|
sxl_summary = accepted_sxls.map { |item| "#{item['name']} #{item['version']}" }.join(', ')
|
|
124
124
|
log "Connection to supervisor established, using core #{@core_version}, SXLs [#{sxl_summary}]",
|
|
125
125
|
level: :info
|
|
126
|
-
|
|
126
|
+
super
|
|
127
127
|
start_watchdog
|
|
128
128
|
@initial_alarm_events = [] if core_3_3_0_or_newer?
|
|
129
129
|
if core_3_3_0_or_newer? || @site_settings['send_after_connect']
|
|
@@ -133,7 +133,6 @@ module RSMP
|
|
|
133
133
|
flush_message_buffer
|
|
134
134
|
@initial_alarm_events = nil
|
|
135
135
|
synchronize_site_state if core_3_3_0_or_newer?
|
|
136
|
-
super
|
|
137
136
|
end
|
|
138
137
|
|
|
139
138
|
def process_message(message)
|
data/lib/rsmp/version.rb
CHANGED