<p>On Kamailio 5.3.0 (<code>ad1905</code>) on CentOS 7, with <code>libcurl</code> 7.29.0-46, an <code>http_connect()</code> request to an unresponsive server...</p>
<pre><code>http_connect("stuff", "/url, "$var(http_res)");
</code></pre>
<p>.. correctly sets <code>$var(http_res)</code> to <code>28</code>, which is an operation timeout per <a href="https://curl.haxx.se/libcurl/c/libcurl-errors.html" rel="nofollow">https://curl.haxx.se/libcurl/c/libcurl-errors.html</a>.</p>
<p>However, <code>$curlerror($var(http_res))</code> returns the value <code>"No error"</code>. This is not quite as promised in <a href="https://kamailio.org/docs/modules/5.3.x/modules/http_client.html#idm480" rel="nofollow">https://kamailio.org/docs/modules/5.3.x/modules/http_client.html#idm480</a>.</p>
<p>Thanks in advance!</p>
<p>-- Alex</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/2154?email_source=notifications&email_token=ABO7UZKO6KCOACWHFSZH7ITQV3OXHA5CNFSM4JSMH4P2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4QU4DQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNJDGWJ2EYSRPZENM3QV3OXHANCNFSM4JSMH4PQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZMIZSGRID3P2BEW3P3QV3OXHA5CNFSM4JSMH4P2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4QU4DQ.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/2154?email_source=notifications\u0026email_token=ABO7UZKO6KCOACWHFSZH7ITQV3OXHA5CNFSM4JSMH4P2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4QU4DQ",
"url": "https://github.com/kamailio/kamailio/issues/2154?email_source=notifications\u0026email_token=ABO7UZKO6KCOACWHFSZH7ITQV3OXHA5CNFSM4JSMH4P2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4QU4DQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>