[bindings] [Bug 377563] New: perlqt-4.14.3: qtgui/t/networkfortune.t test hangs because of IPv6
Petr Pisar
bugzilla_noreply at kde.org
Mon Mar 13 13:58:21 UTC 2017
https://bugs.kde.org/show_bug.cgi?id=377563
Bug ID: 377563
Summary: perlqt-4.14.3: qtgui/t/networkfortune.t test hangs
because of IPv6
Product: bindings
Version: unspecified
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: kde-bindings at kde.org
Reporter: ppisar at redhat.com
Target Milestone: ---
When running perlqt-4.14.3 tests, qtgui/t/networkfortune.t hangs here:
$ perl -I/home/test/fedora/perl-Qt/perlqt-4.14.3/build/blib/{arch,lib}
/home/test/fedora/perl-Qt/perlqt-4.14.3/qtgui/t/networkfortune.t
Config: Using QTest library 4.8.7, Qt 4.8.7
ok 1 - Window shown
PASS : NetworkFortuneTest::initTestCase()
and a dialog window about "connection refused by peer" error appears.
The reason is that the testing server listens on IPv4 0.0.0.0 address, but the
client having "Localhost" host name
(qtgui/examples/network/fortuneclient/Client.pm:69) connects to IPv6 ::1,
receives ECONNREFUSED and does not retry next associated Localhost address,
IPv4 127.0.0.1, that would succeed.
This is probably bug in Qt::TcpSocket::connectToHost() (called from sub
requestNewFortune() in fortuneclient/Client.pm). It gives up on first
connection error instead of trying all addresses resolved from given host name.
Simple workaround in the the Perl binding tests is to connect to 127.0.0.1
instead of Localhost. But I think the real bug is Qt library and it should be
fixed there.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kde-bindings
mailing list