lib/mongrel2/control.rb in mongrel2-0.38.0 vs lib/mongrel2/control.rb in mongrel2-0.39.0
- old
+ new
@@ -26,11 +26,11 @@
### Create a new control port object using the current configuration.
def initialize( port=DEFAULT_PORT )
check_port( port )
@ctx = Mongrel2.zmq_context
- @socket = @ctx.socket( ZMQ::REQ )
- @socket.setsockopt( ZMQ::LINGER, 0 )
+ @socket = @ctx.socket( :REQ )
+ @socket.linger = 0
@socket.connect( port.to_s )
end
######