protobuf 2.8.7 → 2.8.8

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: fa760a7ec58543a5e0cc40c95f95240646291506
4
- data.tar.gz: ecd9644df44958b8f3330b574c119ba3b15e9f8d
3
+ metadata.gz: 2f0351f3d7c48646bd2e1bba944dd1713c5c3363
4
+ data.tar.gz: 1981e09677be1653d8a9330ec4cdc3467212a9a7
5
5
  SHA512:
6
- metadata.gz: d33d3de6834639e094746377c53f3cebd3116306ec235fb358ce7be64ed18e2d158fdb79eb216e294ce8417a1d2962622a66d5e430245620bbd07290190d84eb
7
- data.tar.gz: f3e322395f7c27c30559869d8df4147a80da23a391f4020c5df19db58295fd5a3414c18bc7198cef0100af50ce15128c2f9df83a1ee109795878334307bae9f6
6
+ metadata.gz: 25dbafddcde80787c44fe38651fc499016310099aeaead2de6b018443390137dafb311b840318310ef117360e5086780aa93fa88f405793aa2edf21c9b8aa197
7
+ data.tar.gz: 520bb7c6ad6372c560c77d6f4ee9eebb4067b60955c152242527dd8c29e878a3cca29378afa4e10a93d69adab6121737b666b04bfd5538ac5239ec3ca4d1d23d
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ 2.8.8
2
+ ---------
3
+
4
+ - ServiceDirectory beacons broadcast on same ip as listening clients. [#133, @devin-c]
5
+
1
6
  2.8.7
2
7
  ---------
3
8
 
@@ -33,10 +33,6 @@ module Protobuf
33
33
  @total_workers = total_workers + 1
34
34
  end
35
35
 
36
- def backend_ip
37
- frontend_ip
38
- end
39
-
40
36
  def backend_port
41
37
  options[:worker_port] || frontend_port + 1
42
38
  end
@@ -106,6 +102,7 @@ module Protobuf
106
102
  def frontend_ip
107
103
  @frontend_ip ||= resolve_ip(options[:host])
108
104
  end
105
+ alias_method :backend_ip, :frontend_ip
109
106
 
110
107
  def frontend_port
111
108
  options[:port]
@@ -170,7 +167,7 @@ module Protobuf
170
167
 
171
168
  yield if block_given? # runs on startup
172
169
  wait_for_shutdown_signal
173
- broadcast_flatline if broadcast_beacons?
170
+ broadcast_flatline if broadcast_beacons?
174
171
  Thread.pass until reap_dead_workers.empty?
175
172
  @broker.join unless brokerless?
176
173
  ensure
@@ -248,6 +245,13 @@ module Protobuf
248
245
  def init_beacon_socket
249
246
  @beacon_socket = UDPSocket.new
250
247
  @beacon_socket.setsockopt(::Socket::SOL_SOCKET, ::Socket::SO_BROADCAST, true)
248
+ @beacon_socket.setsockopt(::Socket::SOL_SOCKET, ::Socket::SO_REUSEADDR, true)
249
+
250
+ if defined?(::Socket::SO_REUSEPORT)
251
+ @beacon_socket.setsockopt(::Socket::SOL_SOCKET, ::Socket::SO_REUSEPORT, true)
252
+ end
253
+
254
+ @beacon_socket.bind(frontend_ip, beacon_port)
251
255
  @beacon_socket.connect(beacon_ip, beacon_port)
252
256
  end
253
257
 
@@ -1,4 +1,4 @@
1
1
  module Protobuf
2
- VERSION = '2.8.7'
2
+ VERSION = '2.8.8'
3
3
  PROTOC_VERSION = '2.5.0'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.7
4
+ version: 2.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - BJ Neilsen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-10-07 00:00:00.000000000 Z
13
+ date: 2013-11-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport