fix bug in http client (#11650)
- in some cases error message "timed out" would be shown while there are still data in SSL buffers
Timotej S committed
Oct 22, 2021 at 08:38 UTC
d43a42db4fde1155cc9a7cca8cd66491fd72a68b
1 file changed
+2
-1
aclk/https_client.c
+2
-1
@@ -303,7 +303,8 @@ static int read_parse_response(https_req_ctx_t *ctx) {
303
error("Poll timed out");
304
return 2;
305
}
306
- continue;
306
+ if (!ctx->ssl_ctx)
307
+ continue;
308
}
309
ctx->poll_fd.events = 0;
310