]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
httpc.c: Fix HTTPS with OpenSSL 3.5 (#1813)
authorMichael Marley <michael@michaelmarley.com>
Tue, 13 May 2025 05:43:04 +0000 (01:43 -0400)
committerGitHub <noreply@github.com>
Tue, 13 May 2025 05:43:04 +0000 (09:43 +0400)
The TLS Client Hello message is larger in OpenSSL 3.5 and will not
fit in the previous hc_io_size of 1024 bytes.  This causes the TLS
Client Hello message to be truncated, resulting in HTTPS requests
stalling and eventually timing out.  To fix this, increase
hc_io_size to 2048 bytes.

src/httpc.c

index 26353a0be6c87fbfe0833e506f0bdc393e80a98d..9f469752bd5a5e31d86a26d3ea59686026bacd4c 100644 (file)
@@ -1599,7 +1599,7 @@ http_client_connect
   tvh_mutex_init(&hc->hc_mutex, NULL);
   hc->hc_id      = atomic_add(&tally, 1);
   hc->hc_aux     = aux;
-  hc->hc_io_size = 1024;
+  hc->hc_io_size = 2048;
   hc->hc_rtsp_stream_id = -1;
   hc->hc_verify_peer = -1;
   hc->hc_bindaddr = bindaddr ? strdup(bindaddr) : NULL;