<p>The current implementation uses curl_easy_init() to create a CURL easy handle and curl_easy_cleanup() to destroy the handle, including all open connections within it.</p>

<p>If curl_easy_cleanup() isn't called, it's possible to reuse an open connection for the next http call. To reset the CURL options, curl_easy_reset() can be used instead.</p>

<p><a href="https://github.com/kamailio/kamailio/files/168832/http_client_keep_connections_open.txt">http_client_keep_connections_open.diff</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/542">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZaPN_KgCW_hn8S3SibFbZrTqSgOyks5psT3IgaJpZM4Huiwe.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/542"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>