Module: LockServer
- Defined in:
- lib/lock-server.rb
Defined Under Namespace
Modules: ResourceLockServer
Constant Summary collapse
- CONNECTION_TIMEOUT =
10 minutes in seconds
600
Class Method Summary collapse
Class Method Details
.start_server(opts = { }) ⇒ Object
152 153 154 155 156 157 158 |
# File 'lib/lock-server.rb', line 152 def self.start_server(opts = { }) opts[:port] ||= 12312 opts[:host] ||= 'localhost' EventMachine::run { EventMachine::start_server opts[:host], opts[:port], ResourceLockServer } end |