[Eventmachine-talk] IPv6?

Marc-André Cournoyer
Fri, 18 Jan 2008 19:49:16 -0000

I''m not personally interested and don''t see the use rly. But
it was
requested by a Thin user and wanted to know why it didn''t work.
Thx for the explanations!

On 18-Jan-08, at 10:33 PM, Francis Cianfrocca wrote:

> 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?
> _______________________________________________
> Eventmachine-talk mailing list
> Eventmachine-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/eventmachine-talk

-------------- next part --------------
An HTML attachment was scrubbed...