logjam_agent 0.32.0 → 0.32.1
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 +10 -6
- 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: b5c6ecbf3ed8bc61db07e66fb6d5626e1734e6765781a29ad4bbafb261ccf890
|
4
|
+
data.tar.gz: 67a2ef0e834278c2241aafceac7805a72457a1cb68348a48bb0ec95f99658924
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08137b0a31ce7054b3965ffea84c267d45e08752234f93ad4e2777ac28a0e4954dc4bf0f9dd2e6f1fd02f8979fd5a39a28e5dfa00138f4a6ca8f3a0ac21ba354'
|
7
|
+
data.tar.gz: e0405de81c09f70eecfe77842d25bd150c0fe6a13f028c0cdcbc7d01c029ec786da1b722774a6c4a162112dd1dda04bed0de918469810f3da965241f7d38e322
|
data/lib/logjam_agent/version.rb
CHANGED
@@ -53,10 +53,7 @@ module LogjamAgent
|
|
53
53
|
|
54
54
|
def reset
|
55
55
|
@socket_mutex.synchronize do
|
56
|
-
|
57
|
-
@socket.close
|
58
|
-
@socket = nil
|
59
|
-
end
|
56
|
+
reset_without_locking
|
60
57
|
end
|
61
58
|
end
|
62
59
|
|
@@ -87,6 +84,13 @@ module LogjamAgent
|
|
87
84
|
|
88
85
|
private
|
89
86
|
|
87
|
+
def reset_without_locking
|
88
|
+
if @socket
|
89
|
+
@socket.close
|
90
|
+
@socket = nil
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
90
94
|
# this method assumes the caller holds the socket mutex
|
91
95
|
def socket
|
92
96
|
return @socket if @socket
|
@@ -129,12 +133,12 @@ module LogjamAgent
|
|
129
133
|
answer_parts = []
|
130
134
|
if socket.send_strings(request_parts) < 0
|
131
135
|
log_warning "ZMQ error on sending: #{ZMQ::Util.error_string}"
|
132
|
-
|
136
|
+
reset_without_locking
|
133
137
|
return nil
|
134
138
|
end
|
135
139
|
if socket.recv_strings(answer_parts) < 0
|
136
140
|
log_warning "ZMQ error on receiving: #{ZMQ::Util.error_string}"
|
137
|
-
|
141
|
+
reset_without_locking
|
138
142
|
return nil
|
139
143
|
end
|
140
144
|
if answer_parts.first != "" || !VALID_RESPONSE_CODES.include?(answer_parts.second.to_s.to_i)
|
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.32.
|
4
|
+
version: 0.32.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
274
|
- !ruby/object:Gem::Version
|
275
275
|
version: '0'
|
276
276
|
requirements: []
|
277
|
-
rubygems_version: 3.1.
|
277
|
+
rubygems_version: 3.1.4
|
278
278
|
signing_key:
|
279
279
|
specification_version: 4
|
280
280
|
summary: Logjam client library to be used with logjam
|