http://www.perlmonks.org?node_id=11133801


in reply to AnyEvent::HTTPD -> Extra Callback after response?

If you were trying from a browser I would guess its making a request for /test and perhaps a favicon.ico.

  • Comment on Re: AnyEvent::HTTPD -> Extra Callback after response?

Replies are listed 'Best First'.
Re^2: AnyEvent::HTTPD -> Extra Callback after response?
by The_Dj (Sexton) on Jun 13, 2021 at 03:41 UTC
    I second the /favicon.ico explanation
      favicon comes in as a another request. In the code above it binds to '/test' so favicon doesn't trigger it. Also because it goes into timer, a favicon request can come and go independantly.