[AE::HTTP] Status 599 with keep alive and recursion disabled
Ruslan Zakirov
ruslan.zakirov at gmail.com
Thu Jul 14 17:05:39 CEST 2016
Hi,
>From time to time we get error code 599 from AnyEvent::HTTP module with
"Too many redirections" as reason. I was able to track it down to the
following code:
https://metacpan.org/source/MLEHMANN/AnyEvent-HTTP-2.22/HTTP.pm#L1126
if ($was_persistent && $idempotent) {
my $old_eof = $hdl->{on_eof};
$hdl->{on_eof} = sub {
_destroy_state %state;
%state = ();
$state{recurse} =
http_request (
$method => $url,
%arg,
recurse => $recurse - 1,
persistent => 0,
sub {
%state = ();
&$cb
}
);
};
We run all requests with `recurse => 0`, so this re-try fails with
mentioned status code.
Can I expect this to be fixed soon?
--
Best regards, Ruslan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20160714/cc013f8c/attachment-0001.html>
More information about the anyevent
mailing list