distributor 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/distributor/server.rb +8 -1
- data/lib/distributor/version.rb +1 -1
- metadata +3 -3
data/lib/distributor/server.rb
CHANGED
@@ -107,7 +107,14 @@ class Distributor::Server
|
|
107
107
|
|
108
108
|
def start
|
109
109
|
@multiplexer.output 0, Distributor::OkJson.encode({ "command" => "hello" })
|
110
|
-
|
110
|
+
|
111
|
+
loop do
|
112
|
+
begin
|
113
|
+
@connector.listen
|
114
|
+
rescue Exception => ex
|
115
|
+
@multiplexer.output 0, Distributor::OkJson.encode({ "command" => "error", "message" => ex.message, "backtrace" => ex.backtrace.first })
|
116
|
+
end
|
117
|
+
end
|
111
118
|
end
|
112
119
|
|
113
120
|
private
|
data/lib/distributor/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: distributor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: &
|
16
|
+
requirement: &70128704949500 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 0.13.6
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70128704949500
|
25
25
|
description: TCP Multiplexer
|
26
26
|
email: ddollar@gmail.com
|
27
27
|
executables: []
|