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.

-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>

Reply via email to