logjam_agent 0.29.3 → 0.29.4
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 +3 -2
- 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: 16e759be95192971a9b3de66e727bd1a85f8067a05db0aeb991582d05334a2f5
|
4
|
+
data.tar.gz: e184b7cc2a440b0c75905367d9a47aba41027f1934f60807d40b4df875c56ab0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6264c73cad13fd35cd27e72e152b5e3fc672e45ed80ad0a3e985980547cf1dec0e125b907791cf642bfa9f69abd144ac304c584aadd6adb8195d3908943d455
|
7
|
+
data.tar.gz: 7176210c8972b9ebb513b48a7966ef5a2f1382af08198e16bfffa2df645657cc6517fe73583d3d11429ae43d8afc93772cc83502874213dea267fcaa047feadb
|
data/lib/logjam_agent/version.rb
CHANGED
@@ -14,6 +14,8 @@ module LogjamAgent
|
|
14
14
|
@config = default_options.merge!(opts)
|
15
15
|
@config[:host] = "localhost" if @config[:host].blank?
|
16
16
|
@sequence = SEQUENCE_START
|
17
|
+
@socket = nil
|
18
|
+
at_exit { ping; reset }
|
17
19
|
end
|
18
20
|
|
19
21
|
def connection_specs
|
@@ -51,7 +53,6 @@ module LogjamAgent
|
|
51
53
|
def socket
|
52
54
|
return @socket if @socket
|
53
55
|
@socket = self.class.context.socket(ZMQ::DEALER)
|
54
|
-
at_exit { ping; reset }
|
55
56
|
@socket.setsockopt(ZMQ::LINGER, @config[:linger])
|
56
57
|
@socket.setsockopt(ZMQ::SNDHWM, @config[:snd_hwm])
|
57
58
|
@socket.setsockopt(ZMQ::RCVHWM, @config[:rcv_hwm])
|
@@ -124,7 +125,7 @@ module LogjamAgent
|
|
124
125
|
end
|
125
126
|
|
126
127
|
def ping
|
127
|
-
|
128
|
+
if @socket && !send_receive("ping", "", "{}", NO_COMPRESSION)
|
128
129
|
log_warning "failed to receive pong"
|
129
130
|
end
|
130
131
|
end
|
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.29.
|
4
|
+
version: 0.29.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|