Perl: the Markov chain saw | |
PerlMonks |
Re^3: AnyEvent::HTTPD -> Extra Callback after response?by cavac (Parson) |
on Jun 11, 2021 at 11:21 UTC ( [id://11133777]=note: print w/replies, xml ) | Need Help?? |
This seems to be either a timer or timeout+retry problem. If you respond right away, it works as expected.
Why do you want to wait instead of responding as soon as possible? If you want to wait for an event to happen, the modern way is to either use Websockets or Push notifications. If you can't do either of those (please explain why), then the proper fallback to handle this would be cyclic calls from client to server to "pull" not yet handled events. Leaving standard GET requests just "hanging" will lead to a number of different things:
perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'
In Section
Seekers of Perl Wisdom
|
|