From 56c24c87487c19655053c72dd2857b12fa244ed1 Mon Sep 17 00:00:00 2001 From: artygus Date: Tue, 9 Apr 2024 23:31:30 +0100 Subject: [PATCH] Fix ssl socket resend handling --- src/idevice_ext.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/idevice_ext.c b/src/idevice_ext.c index 321a9957..12726931 100644 --- a/src/idevice_ext.c +++ b/src/idevice_ext.c @@ -122,6 +122,8 @@ int idevice_ext_connection_enable_ssl(const char *device_id, int fd, SSL **to_se SSL_set_connect_state(ssl); SSL_set_verify(ssl, 0, NULL); + SSL_set_mode(ssl, SSL_MODE_ENABLE_PARTIAL_WRITE); + SSL_set_mode(ssl, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER); SSL_set_bio(ssl, ssl_bio, ssl_bio); int ssl_error = 0;