fluent-plugin-syslog_rfc5424 0.7.2.alpha9 → 0.7.2.alpha10

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
  SHA1:
3
- metadata.gz: 326552a68e2885ea6d00b0572d39745d2bbc9388
4
- data.tar.gz: 45893a4bfc3f86ee550fa73cfba91d42927e6cfd
3
+ metadata.gz: d409909ecb8ca653204cd579022e5c01f40e5b20
4
+ data.tar.gz: a41729cee27dcd488d47fe478b18dfe1a2e98312
5
5
  SHA512:
6
- metadata.gz: 4834ed71f925808424e4d1e9ac35fb8a44a4144eb411a5778a544ee880ed538f0175c52cd4ba9f4662496727852c0d533ae0a43da72d8f008d07e2755904ffba
7
- data.tar.gz: 3ba147d21fa3c45aa071c77ff0e95b2bcd3c268abf0e6fb8556e8f9394de9bb5781798e4df74accdf2050d2b4e755e6fa970dd00174d06f27d2bedf05e78bc09
6
+ metadata.gz: 9dea5eaab08c026100330a06163466dff96f627b7d9b36751d7e98dba9b5e4a5358d971df240179cfdf4485a8faa3a2b30245ac7af2ac6831efec8517c0b21d8
7
+ data.tar.gz: 36163ddbc8db5bc4c443c4f98e7404249f4d3b189cedab104cc81c5b09429249c349031747c213a80abd5a928159360efe2af54746e15e3ab68bd0c196ba1a65
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-syslog_rfc5424"
7
- spec.version = "0.7.2.alpha9"
7
+ spec.version = "0.7.2.alpha10"
8
8
  spec.authors = ["Pivotal"]
9
9
  spec.email = %w(cf-loggregator@pivotal.io)
10
10
  spec.homepage = "https://github.com/cloudfoundry/fluent-plugin-syslog_rfc5424"
@@ -28,8 +28,8 @@ module Fluent
28
28
  tag = chunk.metadata.tag
29
29
  chunk.each do |time, record|
30
30
  begin
31
- socket.write @formatter.format(tag, time, record)
32
- socket.sysread(0) # this should be recv for tcp connections
31
+ socket.write_nonblock @formatter.format(tag, time, record)
32
+ IO.select(nil, [socket], nil, 1) || raise("Socket timeout during #{type}"))
33
33
  rescue
34
34
  log.debug("Write Error Recreating Connection")
35
35
  @sockets[socket_key(@transport.to_sym, @host, @port)] = nil
@@ -58,7 +58,7 @@ module Fluent
58
58
  return {} unless @transport == 'tls'
59
59
 
60
60
  # TODO: make timeouts configurable
61
- { insecure: @insecure, verify_fqdn: !@insecure, cert_paths: @trusted_ca_path, connect_timeout: 10, send_timeout: 10, recv_timeout: 10, linger_timeout: 10 }
61
+ { insecure: @insecure, verify_fqdn: !@insecure, cert_paths: @trusted_ca_path, connect_timeout: 1, send_timeout: 1, recv_timeout: 1, linger_timeout: 1 }
62
62
  end
63
63
 
64
64
  def socket_key(transport, host, port)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-syslog_rfc5424
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2.alpha9
4
+ version: 0.7.2.alpha10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal