AnyEvent::HTTP: did request use persistent connection?

Zsbán Ambrus ambrus at math.bme.hu
Thu Oct 20 17:35:42 CEST 2011


Hello,

I'm sending requests with AnyEvent::HTTP.  I am hoping that many time
it will use persistent connections.  I'd like to verify this hope.
For debugging, what's the easiest way to find out whether a particular
request has successfully reused a previous connection?

One way I think might work is to set up a prepare_cb, as that callback
should not be called if a previous connection is reused.  Is there a
better way?

Ambrus



More information about the anyevent mailing list