[SR-Users] http_async_client and HTTP2

Federico Cabiddu federico.cabiddu at gmail.com
Fri Nov 15 13:40:21 CET 2019


Hi Igor,
I just opened a PR (https://github.com/kamailio/kamailio/pull/2132) for
adding http/2 replies parsing in the core.

Cheers,

Federico

On Thu, Nov 14, 2019 at 7:42 PM Igor Olhovskiy <igorolhovskiy at gmail.com>
wrote:

> HI!
>
> Seems to be, http_async client is not compatible with http2 servers.
>
> I'm having like
>
> kamailio_1    | 15(20) INFO: http_async_client [http_multi.c:238]:
> debug_cb(): [cURL] Connection #0 to host relay-api.pbxservice.com left
> intact
> kamailio_1    | 15(20) ERROR: <core> [core/parser/parse_fline.c:264]:
> parse_first_line(): parse_first_line: bad message (offset: 11)
> kamailio_1    | 15(20) ERROR: <core> [core/parser/msg_parser.c:681]:
> parse_msg(): ERROR: parse_msg: message=<HTTP/2 404
> kamailio_1    | date: Thu, 14 Nov 2019 18:31:34 GMT
> ....
> kamailio_1    | 15(20) ERROR: <core> [core/parser/msg_parser.c:337]:
> parse_headers(): bad header field [(null)]
> kamailio_1    | 15(20) ERROR: <core> [core/parser/msg_parser.c:1274]:
> get_body(): failed to parse to end of headers
>
>
> But plain http_client worked good (not async for sure)
>
>
> kamailio 5.3.0
> --
> Best regards,
> Igor
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191115/55eb5087/attachment.html>


More information about the sr-users mailing list