Skip to content
Snippets Groups Projects
Commit 9bdf2bab authored by Sergey Bronnikov's avatar Sergey Bronnikov Committed by Igor Munkin
Browse files

httpc: fix reading data in a chunked request

There was a problem: chunked request to etcd via TLS using builtin http
client returns nothing. The problem was reproduced quite often by a test
`integration.general.tls` in etcd-client Lua module. The patch updates
curl submodule to a version based on 8.5.0 release with applied patch
with fix [1].

The patch also removes workaround for aforementioned problem made in
commit aa58c212 ("httpc: use http 1.1 by default").

1. https://github.com/curl/curl/commit/cdd905a9854305657ebbe645095e1189dcda28c7

Fixes #9547

NO_TEST=etcd-client tests
NO_DOC=bugfix
parent f58bfc97
No related branches found
No related tags found
No related merge requests found
## bugfix/httpc
* Fixed a bug when read from a chunked request returns
nothing (gh-9547).
......@@ -214,8 +214,6 @@ httpc_request_new(struct httpc_env *env, const char *method,
curl_easy_header_cb);
curl_easy_setopt(req->curl_request.easy, CURLOPT_NOPROGRESS, 1L);
curl_easy_setopt(req->curl_request.easy, CURLOPT_NOSIGNAL, 1L);
curl_easy_setopt(req->curl_request.easy, CURLOPT_HTTP_VERSION,
CURL_HTTP_VERSION_1_1);
ibuf_create(&req->send, &cord()->slabc, 1);
......
Subproject commit 7161cb17c01dcff1dc5bf89a18437d9d729f1ecd
Subproject commit b98711437b6bde3f8b2d61842d041c67d30f494e
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment