omq-backend-rust 0.3.1 → 0.3.3
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 +18 -0
- data/lib/omq/rust/engine.rb +17 -6
- data/lib/omq/rust/java/engine.rb +2 -2
- data/lib/omq/rust/version.rb +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 200b2bd0a80a21352951cc6d6afbf04b9871863e7863e1232e128651cef62c74
|
|
4
|
+
data.tar.gz: c3d86d064c6680af4616c0345ffc8cd47dbe31cdc6106f6db2b62a2b32283f0f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fac6dd1fa3cce4715dc55a24e4dc702f0ca11018707a223c2d707865cf5645ad8b8746b5f532d09ef3ca62a0b77d28a7a375c4c6f5c9cd31d1e862f84e29ef14
|
|
7
|
+
data.tar.gz: bca4edce46f96bac98e8f54287389b6095436e4a2d3c89254df04249c70934896d344f7cb045418a5c27c2ade5587d1893c25b6e5ffcd36df07261699d516444
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.3.3] - 2026-11-27
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- `#bind` and `#connect` return a URI that keeps the @ of an abstract IPC
|
|
10
|
+
name, through omq's `Engine.endpoint_uri`. They returned `ipc://name` for
|
|
11
|
+
`ipc://@name`, a relative file path.
|
|
12
|
+
- Require `omq ~> 0.30, >= 0.30.1`, which has `Engine.endpoint_uri`.
|
|
13
|
+
|
|
14
|
+
## [0.3.2] - 2026-11-26
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Without a native Fiber scheduler (TruffleRuby), monitor events could stop
|
|
19
|
+
arriving: the watcher re-armed the monitor fd only after its last empty
|
|
20
|
+
check, so an event in between never woke it, and promises such as
|
|
21
|
+
`subscriber_joined` never resolved.
|
|
22
|
+
|
|
5
23
|
## [0.3.1] - 2026-10-15
|
|
6
24
|
|
|
7
25
|
### Fixed
|
data/lib/omq/rust/engine.rb
CHANGED
|
@@ -58,7 +58,7 @@ module OMQ
|
|
|
58
58
|
apply_endpoint_options!(opts)
|
|
59
59
|
ensure_materialized
|
|
60
60
|
resolved = @socket.bind(endpoint)
|
|
61
|
-
|
|
61
|
+
::OMQ::Engine.endpoint_uri(resolved)
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
|
|
@@ -67,7 +67,7 @@ module OMQ
|
|
|
67
67
|
apply_endpoint_options!(opts)
|
|
68
68
|
ensure_materialized
|
|
69
69
|
@socket.connect(endpoint)
|
|
70
|
-
|
|
70
|
+
::OMQ::Engine.endpoint_uri(endpoint)
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
|
|
@@ -210,15 +210,26 @@ module OMQ
|
|
|
210
210
|
@monitor_watching = true
|
|
211
211
|
FdWatcher.watch_loop(@socket.monitor_fd, owner: self) do |io|
|
|
212
212
|
io.read_nonblock(256, exception: false)
|
|
213
|
-
|
|
214
|
-
handle_monitor_event(data)
|
|
215
|
-
end
|
|
216
|
-
@socket.monitor_fd unless @closed
|
|
213
|
+
drain_monitor_events
|
|
217
214
|
end
|
|
218
215
|
end
|
|
219
216
|
end
|
|
220
217
|
|
|
221
218
|
|
|
219
|
+
# Handles queued monitor events until none is left. #monitor_fd arms
|
|
220
|
+
# the notification fd, and it signals only events that arrive while
|
|
221
|
+
# armed, so arm before each check: an event that lands between an
|
|
222
|
+
# empty check and a later arm would never wake the watcher.
|
|
223
|
+
#
|
|
224
|
+
def drain_monitor_events
|
|
225
|
+
until @closed
|
|
226
|
+
@socket.monitor_fd
|
|
227
|
+
data = @socket.try_monitor_event or break
|
|
228
|
+
handle_monitor_event(data)
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
|
|
222
233
|
def monitor_loop
|
|
223
234
|
until @closed
|
|
224
235
|
data = @socket.monitor.recv
|
data/lib/omq/rust/java/engine.rb
CHANGED
|
@@ -122,7 +122,7 @@ module OMQ
|
|
|
122
122
|
capture_parent_task(parent: parent)
|
|
123
123
|
apply_endpoint_options!(opts)
|
|
124
124
|
ensure_materialized
|
|
125
|
-
|
|
125
|
+
::OMQ::Engine.endpoint_uri(with_java_errors { @native.bind(endpoint) })
|
|
126
126
|
end
|
|
127
127
|
|
|
128
128
|
|
|
@@ -132,7 +132,7 @@ module OMQ
|
|
|
132
132
|
ensure_materialized
|
|
133
133
|
with_java_errors { @native.connect(endpoint) }
|
|
134
134
|
resolve_peer_connected if endpoint.start_with?("inproc://")
|
|
135
|
-
|
|
135
|
+
::OMQ::Engine.endpoint_uri(endpoint)
|
|
136
136
|
end
|
|
137
137
|
|
|
138
138
|
|
data/lib/omq/rust/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omq-backend-rust
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Patrik Wenger
|
|
@@ -15,14 +15,20 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '0.
|
|
18
|
+
version: '0.30'
|
|
19
|
+
- - ">="
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 0.30.1
|
|
19
22
|
type: :runtime
|
|
20
23
|
prerelease: false
|
|
21
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
25
|
requirements:
|
|
23
26
|
- - "~>"
|
|
24
27
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '0.
|
|
28
|
+
version: '0.30'
|
|
29
|
+
- - ">="
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: 0.30.1
|
|
26
32
|
- !ruby/object:Gem::Dependency
|
|
27
33
|
name: omq-rs
|
|
28
34
|
requirement: !ruby/object:Gem::Requirement
|