Class: Goliath::Server
- Inherits:
-
Object
- Object
- Goliath::Server
- Defined in:
- lib/zebra/proxy_server.rb
Instance Method Summary collapse
Instance Method Details
#load_config(file = nil) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/zebra/proxy_server.rb', line 15 def load_config(file = nil) config[:context] = EM::ZeroMQ::Context.new(1) config[:connection_pool] = EM::Synchrony::ConnectionPool.new(:size => 20) do config[:context].socket(ZMQ::REQ) do |socket| socket.connect(Zebra.config.server[:frontend_uri]) end end end |