> -----Original Message----- > From: Stefan Eissing [mailto:[email protected]] > Sent: Montag, 21. März 2016 09:48 > To: [email protected] > Subject: Re: Test framework vs IPv6 > > Yann, > > I encountered this once on a new image where /etc/hosts listed first > localhost ::1 > > Like you, I found that there seems to be no quick fix for this and > edited /etc/hosts... > > I think your listen patch should be applied.
+1 Just one comment on the patch. If you want to keep the old code in as commented you should probably put in a comment above that explains the issue with IPv6. Otherwise I guess it is somewhat pointless to keep old code commented out. We are under version control :-) Regards Rüdiger > > -Stefan > > > Am 20.03.2016 um 01:18 schrieb Yann Ylavic <[email protected]>: > > > > On my machine (Debian 9/testing, Linux 4.4), both "t/protocol/echo.t" > > and "t/security/CVE-2009-3555.t" fail with: > > .... Connect failed: ; Connection refused at > > /home/yle/src/apache/asf/httpd/test/framework/trunk/Apache- > Test/lib/Apache/TestRequest.pm > > line 297. > > .... Dubious, test returned 111 (wstat 28416, 0x6f00) > > > > This appears to be due to Perl trying to connect to ::1 (IPv6, as > > shown by tcpdump) and failing because httpd Listen-s on 0.0.0.0 (IPv4) > > only. > > Some other tests do the same (I did not captured all, though) but > > somehow they don't fail... > > > > Anyway, I tried to address this by Listen-ing on the port only (hence > > any v4 or v6 address), using the attached patch, and indeed the two > > tests pass (I first tried to disable IPv6 on my system and that worked > > too). > > However, there are even more tests failing now... > > > > Anyone ever had this issue? > > Why is (our) Perl connecting localhost with IPv6? > > Any idea on how to avoid that? > > > > Regards, > > Yann. > > <framework_listen_any.patch>
