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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df4bc6a68ce75215afa172d8247bffc2fd1192651e2410e26d4c298500bf4934
4
- data.tar.gz: 54067782beccfe222468f27d1062d4c8cf65f9dd7e4fd94abaa24e2f3eaa46fc
3
+ metadata.gz: b5c6ecbf3ed8bc61db07e66fb6d5626e1734e6765781a29ad4bbafb261ccf890
4
+ data.tar.gz: 67a2ef0e834278c2241aafceac7805a72457a1cb68348a48bb0ec95f99658924
5
5
  SHA512:
6
- metadata.gz: 2eec84c0f349756469546bb35d0ae047585149e9c11429daad6701d98a4d104c9ab4161aa342be12790fd9eb46a4ee47c766a7e8cd3930388e584b31317ecf90
7
- data.tar.gz: 941264e9a1eeeedf6a44748d02e8fb825c59402e28fb66244f3ff9b1045dfa097d5763503ad23b8ff53398560684a576462f1084343b9f2d539e9b37ff9c3386
6
+ metadata.gz: '08137b0a31ce7054b3965ffea84c267d45e08752234f93ad4e2777ac28a0e4954dc4bf0f9dd2e6f1fd02f8979fd5a39a28e5dfa00138f4a6ca8f3a0ac21ba354'
7
+ data.tar.gz: e0405de81c09f70eecfe77842d25bd150c0fe6a13f028c0cdcbc7d01c029ec786da1b722774a6c4a162112dd1dda04bed0de918469810f3da965241f7d38e322
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.32.0"
2
+ VERSION = "0.32.1"
3
3
  end
@@ -53,10 +53,7 @@ module LogjamAgent
53
53
 
54
54
  def reset
55
55
  @socket_mutex.synchronize do
56
- if @socket
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
- reset
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
- reset
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.0
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-08-09 00:00:00.000000000 Z
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.2
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