ae::http socket - what really happens?
gleeco
gleeco at gmail.com
Fri Mar 9 02:18:02 CET 2012
wish i had time to test this myself, but alas, i'm looking for a bit of
additional story:
http://search.cpan.org/~mlehmann/AnyEvent-HTTP-2.13/HTTP.pm
the doc says: "When called in void context, nothing is returned. In other
contexts, http_request returns a "cancellation guard" - you have to keep
the object at least alive until the callback get called. If the object gets
destroyed before the callback is called, the request will be cancelled."
in a keepalive request, what actually happens at the fh/socket level if i
destroy the object --and then try another request? does AE::HTTP remove
that fh/slot?
thx,
-gleeco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20120308/14042d9c/attachment.html>
More information about the anyevent
mailing list