[sr-dev] [kamailio/kamailio] http_client: Plumbing of CURL errors through $curlerror seems incorrect (#2154)

Alex Balashov notifications at github.com
Wed Nov 27 22:09:07 CET 2019


On Kamailio 5.3.0 (`ad1905`) on CentOS 7, with `libcurl` 7.29.0-46, an `http_connect()` request to an unresponsive server...

```
http_connect("stuff", "/url, "$var(http_res)");
```

.. correctly sets `$var(http_res)` to `28`, which is an operation timeout per https://curl.haxx.se/libcurl/c/libcurl-errors.html.

However, `$curlerror($var(http_res))` returns the value `"No error"`. This is not quite as promised in https://kamailio.org/docs/modules/5.3.x/modules/http_client.html#idm480.

Thanks in advance!

-- Alex

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2154
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191127/fd7c46cb/attachment-0001.html>


More information about the sr-dev mailing list