Take a look at your /etc/hosts file. Mine has the following priority:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
Walter
On Dec 28, 2010, at 12:44 PM, Frederick Cheung wrote:
>
>
> On Dec 28, 3:35 pm, Fernando Leandro
<fernandoleandro1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> wrote:
>> Hello,
>>
>> Working with rails, i realized that when i use my application with
>> localhost:3000, the application becomes much more slow than when i
>> use it
>> with 127.0.0.1:3000, for example... have anyone ever realized this
>> too?
>>
>
> I think that in some setups localhost will resolve by default to an
> ipv6 address (::1 or something like that), only falling back to
> 127.0.0.1 if that fails. In some cases it may take a while for the OS
> to realise the connection to ::1 can''t be made.
>
> Fred
>
>> Why this happens?
>>
>> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-
> talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> .
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
> .
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.