AnyEvent::HTTP timeout handling

gleeco gleeco at gmail.com
Wed Aug 10 14:48:13 CEST 2011


hello - am using the HTTP module and want persistent conns (keepalive => 1)
.  But sometimes one of the conns in the pool times out after a period of
non-use, eg.

{
   "Reason" : "Connection timed out",
   "URL" : "http://10.20.30.40:5000/stats",
   "Status" : 595
}

question is: what is the best way to have this condition [auto]eliminated
and a new conn replaces it?

thanks in advance!
-gleeco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20110810/2b414461/attachment.htm>


More information about the anyevent mailing list