fluent-plugin-devo 1.1.0 → 1.2.0

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: 416844b50438aee2dd34a4116b5de3e79a76212496951d63efeb37328c0c13c2
4
- data.tar.gz: ef824d2eeadefb985c090c585a87f2a2dc8d20457782c26cc119a1393cc09723
3
+ metadata.gz: da8dbff3fdc4b84780853c8b88927b9e579867effdb77b4b3e2e76681d4eb426
4
+ data.tar.gz: d036ffb956f6959eff373efc72faff01ea7efa3a9c5856886d25f474c36d49b0
5
5
  SHA512:
6
- metadata.gz: 5b24676438112bca6f4d74983e1280bbc1f8cdaf76158852e54769fee23c959ab9105a0afb8ee3a5cda2b301560a4776c5964e991703cdf3c68b21cc26ad85e1
7
- data.tar.gz: a1ae049100ddb67d0d4ed1d53db130a5b166539682f0734009dc7d57abe35c424b00b2211aba28b550940db3d7d01231980e4912f967962d70a1e59191ac3eea
6
+ metadata.gz: de439f2a9d9d31d928560d997cfaa244866882dc3142349bcfcc4950d3458608a0af145ffb456f297f638a6fa6c328e6e784fc173be8f3fc4dc61c3079422222
7
+ data.tar.gz: b640b60205a184dceb63513a55cd8df36803e056816aff3e2e16c097ed2f9f851cff771c5bec20258cad7d300b27ce9b228cf8e7e20188ac20d659c284382e57
data/CHANGELOG.md CHANGED
@@ -1,8 +1,10 @@
1
- #### 1.1.0
1
+ #### 1.2.0
2
2
 
3
- Fix the plugin to use a duplicate object when forcing encoding of string since some strings may be locked and not able to be modified.
3
+ · Fix windows socket compatibility
4
4
 
5
+ #### 1.1.0
5
6
 
7
+ · Fix the plugin to use a duplicate object when forcing encoding of string since some strings may be locked and not able to be modified.
6
8
 
7
9
  #### 1.0.0
8
10
 
@@ -16,6 +16,7 @@
16
16
 
17
17
  require 'socket'
18
18
  require 'openssl'
19
+ require 'rbconfig'
19
20
 
20
21
  module SyslogTls
21
22
  # Supports SSL connection to remote host
@@ -70,8 +71,10 @@ module SyslogTls
70
71
  begin
71
72
  sock_addr = Socket.sockaddr_in(port, address)
72
73
  tcp = Socket.new(family, sock_type, 0)
73
- tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEADDR, true)
74
- tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEPORT, true)
74
+ tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEADDR, false)
75
+ if !RbConfig::CONFIG['host_os'].match?(/mswin|mingw|cygwin/)
76
+ tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEPORT, false)
77
+ end
75
78
  tcp.connect_nonblock(sock_addr)
76
79
  rescue Errno::EINPROGRESS
77
80
  select_with_timeout(tcp, :connect_write)
@@ -15,5 +15,5 @@
15
15
  # limitations under the License.
16
16
 
17
17
  module SyslogTls
18
- VERSION = '1.1.0'
18
+ VERSION = '1.2.0'
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-devo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devo Inc.