https://bugzilla.redhat.com/show_bug.cgi?id=1851243

Petr Pisar <ppi...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppi...@redhat.com



--- Comment #2 from Petr Pisar <ppi...@redhat.com> ---
There are few failures on CPAN testers. I guess it's a race in
lib/Test/Fake/HTTPD.pm:run() that attempt to bind to a specific TCP port:

            my $d;
            for (1..10) {
                $d = $self->_daemon_class->new(
                    LocalAddr => '127.0.0.1',
                    LocalPort => $port,
                    Timeout   => $self->{timeout},
                    Proto     => 'tcp',
                    Listen    => $self->{listen},
                    (($self->{scheme} eq 'https') ? (SSL_cert_file =>
$self->{cert_file}) : ()),
                    (($self->{scheme} eq 'https') ? (SSL_key_file =>
$self->{key_file}) : ()),
                    ($self->_is_win32 ? () : (ReuseAddr => 1)),
                    %extra_daemon_args,
                ) and last;
                Time::HiRes::sleep(0.1);
            }

            croak("Can't accepted on 127.0.0.1:$port") unless $d;

The test should either skip the test, if it cannot bind, or it should pass an
already bound socket to the daemon, or it should not force a specific port and
let operating system to select any free port.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org

Reply via email to