I''m having a hard time figuring out if I''m doing something wrong or if EventMachine doesn''t support IPv6 yet. Should I be able to bind to ::1 as an address? -- Cheers, Kevin Williams http://www.bantamtech.com/
That''s an interesting question. What exactly did you try to do, and on what platform? Are you trying to connect to a server running on an IPv6 loopback? On Jan 18, 2008 10:56 AM, Kevin Williams <kevwil at gmail.com> wrote:> I''m having a hard time figuring out if I''m doing something wrong or if > EventMachine doesn''t support IPv6 yet. Should I be able to bind to ::1 > as an address? > > -- > Cheers, > > Kevin Williams > http://www.bantamtech.com/ > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080118/e7e4bc3c/attachment.html
I changed the address in the EchoServer demo code in the rdoc readme to be "::1" instead of "127.0.0.1". I''ve been looking at the rdocs and source but I haven''t found anything about IPv6. I was hoping it would "just work". On Jan 18, 2008 6:19 PM, Francis Cianfrocca <garbagecat10 at gmail.com> wrote:> That''s an interesting question. What exactly did you try to do, and on what > platform? Are you trying to connect to a server running on an IPv6 loopback? > > > > On Jan 18, 2008 10:56 AM, Kevin Williams < kevwil at gmail.com> wrote: > > > > > > > > I''m having a hard time figuring out if I''m doing something wrong or if > > EventMachine doesn''t support IPv6 yet. Should I be able to bind to ::1 > > as an address? > > > > -- > > Cheers, > > > > > > > > > > Kevin Williams > > http://www.bantamtech.com/ > > _______________________________________________ > > Eventmachine-talk mailing list > > Eventmachine-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/eventmachine-talk > > > > > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >-- Cheers, Kevin Williams http://www.bantamtech.com/
On Jan 18, 2008 8:28 PM, Kevin Williams <kevwil at gmail.com> wrote:> I changed the address in the EchoServer demo code in the rdoc readme > to be "::1" instead of "127.0.0.1". I''ve been looking at the rdocs and > source but I haven''t found anything about IPv6. I was hoping it would > "just work". > > >What platform are you on? The IPv4 loopback is not technically the same thing as the IPv6 loopback, although it might seem that way on some platforms. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080118/6fcf3f75/attachment.html
Oh, sorry. You asked and I forgot to answer. I''m on 32-bit OS X 10.5.1. I tried looking at my ipv6 address using the output of ifconfig. I still get a "no acceptor" error. On Jan 18, 2008 6:46 PM, Francis Cianfrocca <garbagecat10 at gmail.com> wrote:> On Jan 18, 2008 8:28 PM, Kevin Williams <kevwil at gmail.com> wrote: > > > I changed the address in the EchoServer demo code in the rdoc readme > > to be "::1" instead of "127.0.0.1". I''ve been looking at the rdocs and > > source but I haven''t found anything about IPv6. I was hoping it would > > "just work". > > > > > > > > > > > > What platform are you on? The IPv4 loopback is not technically the same > thing as the IPv6 loopback, although it might seem that way on some > platforms. > > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >-- Cheers, Kevin Williams http://www.bantamtech.com/
On Jan 18, 2008 9:02 PM, Kevin Williams <kevwil at gmail.com> wrote:> Oh, sorry. You asked and I forgot to answer. > > I''m on 32-bit OS X 10.5.1. > > I tried looking at my ipv6 address using the output of ifconfig. I > still get a "no acceptor" error. > > >Thanks, Kevin. I''m trying this out on a Linux 2.6 kernel. I''ll post here when I have a result. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080118/56cf41fe/attachment.html
On Jan 18, 2008 9:02 PM, Kevin Williams <kevwil at gmail.com> wrote:> Oh, sorry. You asked and I forgot to answer. > > I''m on 32-bit OS X 10.5.1. > > I tried looking at my ipv6 address using the output of ifconfig. I > still get a "no acceptor" error. > > >Well, I got it to work :-). The bad news is that I had to hack the socket-handling code in the reactor core. I can see adding a new family of methods that will work with IPv6, and eventually making the standard ones smart enough to automatically do the right thing when presented with an IPv6 address. Anyone else interested in this? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080118/ee070e24/attachment.html
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 On 18-Jan-08, at 8:46 PM, Francis Cianfrocca wrote:> On Jan 18, 2008 8:28 PM, Kevin Williams <kevwil at gmail.com> wrote: > I changed the address in the EchoServer demo code in the rdoc readme > to be "::1" instead of "127.0.0.1". I''ve been looking at the rdocs and > source but I haven''t found anything about IPv6. I was hoping it would > "just work". > > > > What platform are you on? The IPv4 loopback is not technically the > same thing as the IPv6 loopback, although it might seem that way on > some platforms. > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080118/70feec6e/attachment.html
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... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080118/34de8784/attachment.html
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... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080118/695ab20c/attachment-0001.html