Anyone use the httpclient gem?
It keeps http connections where the server allows it open, to allow
reuse of connections, which is great for efficiency.
But I'm confused about if I _have_ to make sure to manually close them
all when I'm done.
If I don't ever close them, and just let the object be (eventually, who
knows when) garbage collected... is this bad? What will happen to all
my connections?
If I do need to close them all... what's the best way to do that? That
makes my code a lot more complicated, as I need to make sure to put in a
hook at the end of every (in this case Rails) action that knows about
any outstanding http clients and closes all their connections.
Any advice appreciated. I wasn't able to find any listserv or author
contact address specifically for this gem.
Jonathan
ยทยทยท
--
Posted via http://www.ruby-forum.com/.