Thanks Sebastian for the quick response.
I have recompiled perl with perlbrew (5.20.0 > 5.20.1) on a fully
up-to-date Kubuntu 14.04 and nothing has changed, same errors as before.
Sam on the server which is perl 8.18.2. The entire script is:
#!/usr/bin/env perl
use Modern::Perl '2013';
use Mojo::UserAgent;
use Data::Dumper;
use Mojo::IOLoop::Delay;
my $bv = '...';
my $ua = Mojo::UserAgent->new;
my @emails = ( ... );
for my $email ( @emails ) {
my $tx = $ua->get( $bv . $email );
my $res = $tx->res->json;
say Dumper $res;
}
Mojo::IOLoop::Delay->new->steps(
sub {
my $delay = shift;
$ua->get( $bv . $_ => $delay->begin ) for @emails;
},
sub {
my $delay = shift;
for my $tx ( @_ ) {
my $res = $tx->res->json;
say Dumper $res;
}
}
)->wait;
I do have EV installed.
I have several sites using the non-blocking ua code and until a few days
ago it was fine. I use the mojo ua to send emails through another http api
and still use mango (only until end of January and with a freeze on the
MongoDB updates) on one site in non-blocking fashion with no problems.
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.