<p></p>
<p>We suspect that the issue only happens with http2. <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/amessina/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/amessina">@amessina</a> I can see that the server you connect to is also using http2. Looking at the implementation of http_async_client it doesn't seem to handle http2 properly.<br>
If you understood the implementation correctly these is an association between the Curl_easy and the fd, when registering in libevents. That does not work in http2, where several requests are multiplexed over the same TLS connection.</p>
<p>A quick fix could be to disable ALPN  <code>curl_easy_setopt(curl_, CURLOPT_SSL_ENABLE_ALPN, 0L);</code>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2632#issuecomment-802806829">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNAEAIMEY5OWLQLALLTENBFXANCNFSM4XMAPBAQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJGTRU4OSEQMMOLFBDTENBFXA5CNFSM4XMAPBA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF7M5YLI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2632#issuecomment-802806829",
"url": "https://github.com/kamailio/kamailio/issues/2632#issuecomment-802806829",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>