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 +4 -4
- data/CHANGES.md +5 -0
- data/lib/protobuf/rpc/servers/zmq/server.rb +9 -5
- data/lib/protobuf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f0351f3d7c48646bd2e1bba944dd1713c5c3363
|
4
|
+
data.tar.gz: 1981e09677be1653d8a9330ec4cdc3467212a9a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25dbafddcde80787c44fe38651fc499016310099aeaead2de6b018443390137dafb311b840318310ef117360e5086780aa93fa88f405793aa2edf21c9b8aa197
|
7
|
+
data.tar.gz: 520bb7c6ad6372c560c77d6f4ee9eebb4067b60955c152242527dd8c29e878a3cca29378afa4e10a93d69adab6121737b666b04bfd5538ac5239ec3ca4d1d23d
|
data/CHANGES.md
CHANGED
@@ -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
|
|
data/lib/protobuf/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2013-11-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|