genesisreactor 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/genesis/protocol/http/server.rb +2 -0
- data/lib/genesis/reactor.rb +2 -1
- data/lib/genesis/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d31927f16ab35f354592e6f26cfca7d43db3c4fc
|
4
|
+
data.tar.gz: fa7cfab4e03abc62864bb8a6c74436cfa657ac95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5d3bc0c5b0024b103908d3d766d188e949759710064dfd9f61d8c43f3d4a6f2c2c8e45a050068d4cef1bf8fb8850f9ee0b1e30532ebf984e14fb818da950785
|
7
|
+
data.tar.gz: 860c3a3965c59d308617e8094931826a3a319b19a96e270048f1795c9bac881b9f20eb5c1f57b4d6959dcb21853ed4ee96ef723d8038f64951974d5574d0205d
|
@@ -22,6 +22,8 @@ module Genesis
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
+
# Enable full request logging with @debug
|
26
|
+
Thin::Logging.trace=true if @args[:debug]
|
25
27
|
# Since Thin is backed by EventMachine's TCPserver anyways,
|
26
28
|
# This is just a TCPServer like any other - running inside the same EventMachine!
|
27
29
|
Thin::Server.new(@port, '0.0.0.0', dispatch).backend.start
|
data/lib/genesis/reactor.rb
CHANGED
@@ -20,6 +20,7 @@ module Genesis
|
|
20
20
|
@poolsize = kwargs[:threads] || 100 # maximum concurrency - larger = longer boot and shutdown time
|
21
21
|
@protocols = kwargs[:protocols] || {}
|
22
22
|
@views = kwargs[:views] || {}
|
23
|
+
@debug = kwargs[:debug] || false
|
23
24
|
register_handlers(kwargs[:handlers] || {})
|
24
25
|
register_agents(kwargs[:agents] || [])
|
25
26
|
end
|
@@ -79,7 +80,7 @@ module Genesis
|
|
79
80
|
@protocols.each do |protocol, _|
|
80
81
|
server = @servers[protocol.protocol]
|
81
82
|
block = server[:start]
|
82
|
-
server[:server].start(server[:port], @routes[protocol.protocol], views: @views, channel: @channels[protocol.protocol], &block)
|
83
|
+
server[:server].start(server[:port], @routes[protocol.protocol], views: @views, channel: @channels[protocol.protocol], debug: @debug, &block)
|
83
84
|
end
|
84
85
|
end
|
85
86
|
|
data/lib/genesis/version.rb
CHANGED