Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: dev

Issue 1289 in cherokee: When using localhost and ipv4+ipv6 stacks, ipv4 should get precedence on name-resolving

 

 

Cherokee dev RSS feed   Index | Next | Previous | View Threaded


cherokee at googlecode

Oct 19, 2011, 9:03 AM

Post #1 of 7 (1045 views)
Permalink
Issue 1289 in cherokee: When using localhost and ipv4+ipv6 stacks, ipv4 should get precedence on name-resolving

Status: New
Owner: ----

New issue 1289 by a...@laumi.org: When using localhost and ipv4+ipv6
stacks, ipv4 should get precedence on name-resolving
http://code.google.com/p/cherokee/issues/detail?id=1289

Ok, the scenario is:
1. ArchLinux, only stable repositories
2. Cherokee 1.2.100-1 and 1.2.101-1
3. cherokee-admin and all f/w/scgi sites that run on localhost connections
stop working.

Up until cherokee version 1.2.99-3 it all worked fine, and, if I downgrade
cherokee, it still works fine.

After reporting it to the ArchLinux mantainer of the package, he couldn't
reproduce the issue.

After searching here on code.google, I found a similar issue, that put me
on the right path:

http://code.google.com/p/cherokee/issues/detail?id=1145

It seems that having both ipv6 and ipv4 addresses to localhost causes the
issue.

My /etc/hosts files has the following lines:

127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost

With thouse two lines, using cherokee 1.2.101, running:

cherokee-admin -b -u

And trying to connect to localhost:9090 times out (after a looong time)
with the 503 error.

If I comment out the line that has the ipv6 localhost address,
cherokee-admin starts to work as expected, and so do all the other f/w/scgi
sites using localhost connections.

Running the following commands on python:

import sys, socket
result = socket.getaddrinfo("localhost", None)
print result

yields the following results:

1- with ipv6 ::1 localhost still on /etc/hosts:

[.(10, 1, 6, '', ('::1', 0, 0, 0)), (10, 2, 17, '', ('::1', 0, 0, 0)), (10,
3, 0, '', ('::1', 0, 0, 0)), (2, 1, 6, '', ('127.0.0.1', 0)), (2, 2,
17, '', ('127.0.0.1', 0)), (2, 3, 0, '', ('127.0.0.1', 0))]

2- with ipv6 commented on /etc/hosts:

[.(2, 1, 6, '', ('127.0.0.1', 0)), (2, 2, 17, '', ('127.0.0.1', 0)), (2, 3,
0, '', ('127.0.0.1', 0))]

Since ipv6 isn't critical to me, I had no other issues comming from
commenting ipv6 localhost resolving, but others may have a problem with
that.

I'm not sure whether it is a cherokee issue or some os-dependent library's,
so, any help will be much appreciated.

Thanks!



_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Oct 19, 2011, 11:22 AM

Post #2 of 7 (1023 views)
Permalink
Re: Issue 1289 in cherokee: When using localhost and ipv4+ipv6 stacks, ipv4 should get precedence on name-resolving [In reply to]

Comment #1 on issue 1289 by alobbs: When using localhost and ipv4+ipv6
stacks, ipv4 should get precedence on name-resolving
http://code.google.com/p/cherokee/issues/detail?id=1289

Is Cherokee compiled with IPv6? It prints it on the terminal when
cherokee-admin is executed.


_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Oct 19, 2011, 11:28 AM

Post #3 of 7 (1020 views)
Permalink
Re: Issue 1289 in cherokee: When using localhost and ipv4+ipv6 stacks, ipv4 should get precedence on name-resolving [In reply to]

Comment #2 on issue 1289 by a...@laumi.org: When using localhost and
ipv4+ipv6 stacks, ipv4 should get precedence on name-resolving
http://code.google.com/p/cherokee/issues/detail?id=1289

Here's what cherokee-admin prints me:

Cherokee Web Server 1.2.101 (Oct 19 2011): Listening on port ALL:9090, TLS
disabled, IPv6 enabled, using epoll, 4096 fds system limit, max. 2041
connections, caching I/O, 4 threads, 510 connections per thread, standard
scheduling policy


_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Oct 19, 2011, 11:56 AM

Post #4 of 7 (1022 views)
Permalink
Re: Issue 1289 in cherokee: When using localhost and ipv4+ipv6 stacks, ipv4 should get precedence on name-resolving [In reply to]

Comment #3 on issue 1289 by alobbs: When using localhost and ipv4+ipv6
stacks, ipv4 should get precedence on name-resolving
http://code.google.com/p/cherokee/issues/detail?id=1289

That's weird. I have just tried to reproduce the problem by changing the
localhost entries of an Ubuntu box, but it worked alright.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Jan 22, 2012, 11:32 AM

Post #5 of 7 (952 views)
Permalink
Re: Issue 1289 in cherokee: When using localhost and ipv4+ipv6 stacks, ipv4 should get precedence on name-resolving [In reply to]

Comment #4 on issue 1289 by mrsh...@gmail.com: When using localhost and
ipv4+ipv6 stacks, ipv4 should get precedence on name-resolving
http://code.google.com/p/cherokee/issues/detail?id=1289

Downstream bug: https://bugs.archlinux.org/task/26396

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Mar 1, 2012, 10:25 AM

Post #6 of 7 (926 views)
Permalink
Re: Issue 1289 in cherokee: When using localhost and ipv4+ipv6 stacks, ipv4 should get precedence on name-resolving [In reply to]

Comment #5 on issue 1289 by simon.malinge [at] gmail: When using localhost
and ipv4+ipv6 stacks, ipv4 should get precedence on name-resolving
http://code.google.com/p/cherokee/issues/detail?id=1289

Bug is still present as of 1.2.101.
Any news regarding this issue ?
Could a strace dump of cherokee-admin help ?

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Apr 10, 2013, 5:46 PM

Post #7 of 7 (655 views)
Permalink
Re: Issue 1289 in cherokee: When using localhost and ipv4+ipv6 stacks, ipv4 should get precedence on name-resolving [In reply to]

Comment #6 on issue 1289 by xno...@gmail.com: When using localhost and
ipv4+ipv6 stacks, ipv4 should get precedence on name-resolving
http://code.google.com/p/cherokee/issues/detail?id=1289

Same problem here.

I'm using debian stable (squeeze) and built cherokee 1.2.101 based on the
ubuntu source package cherokee 1.2.101-1.

cherokee-admin prints:
Cherokee Web Server 1.2.101 (Apr 11 2013): Listening on port 127.0.0.1:9090,
TLS disabled, IPv6 enabled, using epoll, 4096 fds system limit, max. 2041
connections, caching I/O, 2 threads, 1020 connections per thread, standard
scheduling policy

The web browser just hangs. Only if I use the -t option I can access the
website with my browser.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev

Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.