riemann-client 1.2.0 → 1.2.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: 4ecf7fbb122c865afd7a238b0431fa0e7612911bd144c245ede6e1b4bba7d315
4
- data.tar.gz: ba917bc1d701fc4879b5273fb0b719271c39a0a9aca442d300f6e2864829f955
3
+ metadata.gz: 4d1995b06fc640ef8e66c806a1d89d59dfa58238c11049310255bf542121a4ea
4
+ data.tar.gz: dccb036f711cc73847cd81104756cd2d8b52fd9a5aa67c0528bd721a040ab504
5
5
  SHA512:
6
- metadata.gz: 6b0ee1e832110bd39c4caf6fe16af86691dea30e77768789bfd3db23ddb5ddf1e0b9786a5c326586526e8ccf9da40d4b1168378b701ab97f36a92c7ea71e2eb4
7
- data.tar.gz: 82e370d71c95d39530b3b1fc4725b6a4f9ece4348cbe6cce08d944bf6c3e72b6cd9ccea47e243ed307c989f44ddb12ad03b5abc8837f81ce8b0915fbf2236665
6
+ metadata.gz: 3079702426c293a96a1e07b38ccffb281a53ab31ca653bfb5dcf2952a0a53c5e714b55e92d42ba28bb0cfff0b97bf472a2eb319dc90a12350f72273e4954bd09
7
+ data.tar.gz: 46c21db177b2d22c61bd82bfd94b62321b54c893a596f37daf9f8e1e9297a02689784d3637a8be54cd0d9b4dd4f9f7e21a10c91d1e5232fe001b84d984173c8f
@@ -5,7 +5,14 @@
5
5
 
6
6
  version: 2
7
7
  updates:
8
+ # Open PR for gem updates
8
9
  - package-ecosystem: "bundler" # See documentation for possible values
9
10
  directory: "/" # Location of package manifests
10
11
  schedule:
11
12
  interval: "daily"
13
+
14
+ # Open PR for GitHub Actions updates
15
+ - package-ecosystem: "github-actions"
16
+ directory: "/"
17
+ schedule:
18
+ interval: "daily"
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.2.1](https://github.com/riemann/riemann-ruby-client/tree/v1.2.1) (2023-07-30)
4
+
5
+ [Full Changelog](https://github.com/riemann/riemann-ruby-client/compare/v1.2.0...v1.2.1)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Fix sending large batch of events over TLS [\#51](https://github.com/riemann/riemann-ruby-client/pull/51) ([smortex](https://github.com/smortex))
10
+
3
11
  ## [v1.2.0](https://github.com/riemann/riemann-ruby-client/tree/v1.2.0) (2023-06-28)
4
12
 
5
13
  [Full Changelog](https://github.com/riemann/riemann-ruby-client/compare/v1.1.0...v1.2.0)
@@ -53,40 +53,6 @@ module Riemann
53
53
  end
54
54
  ssl_socket
55
55
  end
56
-
57
- # Internal: Read up to a maxlen of data from the socket and store it in outbuf
58
- #
59
- # maxlen - the maximum number of bytes to read from the socket
60
- # outbuf - the buffer in which to store the bytes.
61
- #
62
- # Returns the bytes read
63
- def readpartial(maxlen, outbuf = nil)
64
- super(maxlen, outbuf)
65
- rescue OpenSSL::SSL::SSLErrorWaitReadable
66
- unless wait_readable(read_timeout)
67
- raise Timeout, "Could not read from #{host}:#{port} in #{read_timeout} seconds"
68
- end
69
-
70
- retry
71
- end
72
-
73
- # Internal: Write the given data to the socket
74
- #
75
- # buf - the data to write to the socket.
76
- #
77
- # Raises an error if it is unable to write the data to the socket within the
78
- # write_timeout.
79
- #
80
- # returns nothing
81
- def write(buf)
82
- super(buf)
83
- rescue OpenSSL::SSL::SSLErrorWaitWritable
84
- unless wait_writable(write_timeout)
85
- raise Timeout, "Could not write to #{host}:#{port} in #{write_timeout} seconds"
86
- end
87
-
88
- retry
89
- end
90
56
  end
91
57
  end
92
58
  end
@@ -311,7 +311,7 @@ module Riemann
311
311
  # Returns the bytes read
312
312
  def readpartial(maxlen, outbuf = nil)
313
313
  socket.read_nonblock(maxlen, outbuf)
314
- rescue Errno::EWOULDBLOCK, Errno::EAGAIN, Errno::ECONNRESET
314
+ rescue Errno::EWOULDBLOCK, Errno::EAGAIN, Errno::ECONNRESET, IO::WaitReadable
315
315
  unless wait_readable(read_timeout)
316
316
  raise Timeout, "Could not read from #{host}:#{port} in #{read_timeout} seconds"
317
317
  end
@@ -332,11 +332,19 @@ module Riemann
332
332
  written = socket.write_nonblock(buf)
333
333
  buf = buf[written, buf.length]
334
334
  end
335
- rescue Errno::EWOULDBLOCK, Errno::EINTR, Errno::EAGAIN, Errno::ECONNRESET
335
+ rescue Errno::EWOULDBLOCK, Errno::EINTR, Errno::EAGAIN, Errno::ECONNRESET, IO::WaitWritable
336
336
  unless wait_writable(write_timeout)
337
337
  raise Timeout, "Could not write to #{host}:#{port} in #{write_timeout} seconds"
338
338
  end
339
339
 
340
+ retry
341
+ rescue IO::WaitReadable
342
+ # Also rescued for SSL renegotiation in OpenSSL::SSL::SSLSocket according to
343
+ # https://ruby-doc.org/core-2.7.1/IO.html#method-c-select
344
+ unless wait_readable(read_timeout)
345
+ raise Timeout, "Could not write to #{host}:#{port} in #{write_timeout} seconds"
346
+ end
347
+
340
348
  retry
341
349
  end
342
350
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Riemann
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kingsbury
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-28 00:00:00.000000000 Z
11
+ date: 2023-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -149,7 +149,7 @@ homepage: https://github.com/aphyr/riemann-ruby-client
149
149
  licenses:
150
150
  - MIT
151
151
  metadata: {}
152
- post_install_message:
152
+ post_install_message:
153
153
  rdoc_options: []
154
154
  require_paths:
155
155
  - lib
@@ -164,8 +164,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
166
  requirements: []
167
- rubygems_version: 3.2.5
168
- signing_key:
167
+ rubygems_version: 3.4.15
168
+ signing_key:
169
169
  specification_version: 4
170
170
  summary: Client for the distributed event system Riemann.
171
171
  test_files: