logjam_agent 0.33.1 → 0.33.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logjam_agent/version.rb +1 -1
- data/lib/logjam_agent/zmq_forwarder.rb +6 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7a947089e6779f029fce195520f09439948a72164dd4ee53671e129631406a9
|
4
|
+
data.tar.gz: 21daffea283fec4e44bd3d9fac3d6a47ea14c35ee1bf8b982e7a2c2c3fbd1341
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40973d3ac9de2bf532f94b4b4aa1f5ede0aa166b9bd5182291cf21063908b06b37e281042497ff9961a8342f2d589148f685f25a8a78a516e9662fb0e2bae982
|
7
|
+
data.tar.gz: 8fb0c2d199b12967e4d9e099f73e651ff5273c433ea992495963da1a5379f01e93471239b2dc4e22c165536a0abf71e13a747a28f9118a4e1f12cd723cecf0f7
|
data/lib/logjam_agent/version.rb
CHANGED
@@ -45,7 +45,8 @@ module LogjamAgent
|
|
45
45
|
begin
|
46
46
|
require 'ffi-rzmq'
|
47
47
|
context = ZMQ::Context.new(1)
|
48
|
-
|
48
|
+
pid = Process.pid
|
49
|
+
at_exit { context.terminate if Process.pid == pid }
|
49
50
|
context
|
50
51
|
end
|
51
52
|
end
|
@@ -59,7 +60,8 @@ module LogjamAgent
|
|
59
60
|
|
60
61
|
def ensure_ping_at_exit
|
61
62
|
return if @ping_ensured
|
62
|
-
|
63
|
+
pid = Process.pid
|
64
|
+
at_exit { (ping; reset) if Process.pid == pid }
|
63
65
|
@ping_ensured = true
|
64
66
|
end
|
65
67
|
|
@@ -99,7 +101,8 @@ module LogjamAgent
|
|
99
101
|
if LogjamAgent.ensure_ping_at_exit
|
100
102
|
ensure_ping_at_exit
|
101
103
|
else
|
102
|
-
|
104
|
+
pid = Process.pid
|
105
|
+
at_exit { reset if Process.pid == pid}
|
103
106
|
end
|
104
107
|
@socket.setsockopt(ZMQ::LINGER, @config[:linger])
|
105
108
|
@socket.setsockopt(ZMQ::SNDHWM, @config[:snd_hwm])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logjam_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.33.
|
4
|
+
version: 0.33.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -275,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
275
275
|
- !ruby/object:Gem::Version
|
276
276
|
version: '0'
|
277
277
|
requirements: []
|
278
|
-
rubygems_version: 3.3.
|
278
|
+
rubygems_version: 3.3.15
|
279
279
|
signing_key:
|
280
280
|
specification_version: 4
|
281
281
|
summary: Logjam client library to be used with logjam
|