[Mongrel] mongrel 1.0.3

Alexander Logvinov freebsd at akavia.ru
Sat Oct 27 21:20:34 EDT 2007


Hello, Luis.

>> ** Starting Rails with development environment...
>> ** Rails loaded.
>> ** Loading any Rails specific GemPlugins
>> ** Signals ready.  TERM => stop.  USR2 => restart.  INT => stop (no restart).
>> ** Rails signals registered.  HUP => reload (without restart).  It might not work well.
>> ** Mongrel available at 10.164.28.7:8080
>> ** Writing PID file to log/mongrel.8080.pid
> It seems is not handling the IP binding...
> Could you try the following in a IRB console?

> require 'rubygems'
> require 'mongrel'
> s = Mongrel::HttpServer.new("127.0.0.1", 8081)
> puts "Host: #{s.host}, Port: #{s.port}"

> It's using a TCPServer inside, so it should work, unless mongrel_rails
> is doing something else with the address (host) passed by.

  Here is:

>> require 'rubygems'
=> []
>> require 'mongrel'
=> []
>> s = Mongrel::HttpServer.new("127.0.0.1", 8081)
=> #<Mongrel::HttpServer:0x2a0ddad4 @num_processors=1073741823, @timeout=0, @socket=#<TCPServer:0x2a0dd9d0>, @port=8081, @workers=#<ThreadGroup:0x2a0dd980>, @classifier={}, @host="127.0.0.1", @death_time=60>
>> puts "Host: #{s.host}, Port: #{s.port}"
Host: 127.0.0.1, Port: 8081
=> nil

-- 
WBR



More information about the Mongrel-users mailing list