cURL / Mailing Lists / curl-library / Single Mail

curl-library

re-using easy handles with muti-interface

From: Shawn Delaney <sdelaney_at_juniper.net>
Date: Wed, 5 Jun 2013 23:48:16 +0000

Hello,

I wanted to know if there is any benefit for an application to keep a cache of easy handles for re-use with the multi-interface. From the FAQ, a connection cache is associated with the multi-handle. When an easy handle is passed to the multi-interface a connection from the connection cache is given to the easy handle. You can see this happening from the debug output. However, even if the same easy handle is re-used in a subsequent transfer it may get assigned a different connection. So, is there advantage for an application to keep a cache of easy handles for re-use. There doesn't seem to be for connection pooling.

Thank you.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-06-06