more useful options | |
PerlMonks |
Re: AnyEvent::HTTPD -> Extra Callback after response?by sectokia (Pilgrim) |
on Jan 27, 2023 at 00:17 UTC ( [id://11149913]=note: print w/replies, xml ) | Need Help?? |
So I never wrote the answer for this: The registered callback is async, but it responds immediately instead of doing an async operation. Thus the fix was to postpone the response so that it is done *after* the registered callback completes: AnyEvent::postpone { $req->respond(...) }
In Section
Seekers of Perl Wisdom
|
|