[Eventmachine-talk] IPv6?

Francis Cianfrocca
Fri, 18 Jan 2008 19:33:58 -0000

On Jan 18, 2008 9:31 PM, Marc-Andr? Cournoyer <macournoyer at gmail.com>
wrote:

> I''m on OS X and I can bind mongre to ::1
>
>  mongrel_rails start -a ::1
>
> But w/ thin I get:
>
> eventmachine-0.10.0/lib/eventmachine.rb:500:in `start_tcp_server'':
no
> acceptor (RuntimeError)
> from
/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.10.0/lib/eventmachine.rb:500:in
> `start_server''
>
> The code is something like this:
>
> EventMachine.start_server ''::1'', 3000, Connection
>
>

If you do something like this is pure Ruby:

require ''socket''
TCPServer.new( "::1", 3000 )

it will work. In EM it doesn''t work because EM handles the low-level
details
itself. Your code sample is exactly what I got to work in EM with two
minutes'' hacking.

Again: what''s everyone''s level of interest in having this fix?
-------------- next part --------------
An HTML attachment was scrubbed...