Skip to content

Commit 728885f

Browse files
authored
httpc.c: Fix HTTPS with OpenSSL 3.5 (#1813)
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.
1 parent cc07e34 commit 728885f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/httpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ http_client_connect
15991599
tvh_mutex_init(&hc->hc_mutex, NULL);
16001600
hc->hc_id = atomic_add(&tally, 1);
16011601
hc->hc_aux = aux;
1602-
hc->hc_io_size = 1024;
1602+
hc->hc_io_size = 2048;
16031603
hc->hc_rtsp_stream_id = -1;
16041604
hc->hc_verify_peer = -1;
16051605
hc->hc_bindaddr = bindaddr ? strdup(bindaddr) : NULL;

0 commit comments

Comments
 (0)