Skip to content

Commit 1c9e16f

Browse files
authored
Fix ssl socket resend (#412)
* set SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER to support sm_resend since buffer gets copied to new location for retries * set SSL_MODE_ENABLE_PARTIAL_WRITE to be more in line with current non-blocking architecture
1 parent a2c7d28 commit 1c9e16f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/idevice_ext.c

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ int idevice_ext_connection_enable_ssl(const char *device_id, int fd, SSL **to_se
122122

123123
SSL_set_connect_state(ssl);
124124
SSL_set_verify(ssl, 0, NULL);
125+
SSL_set_mode(ssl, SSL_MODE_ENABLE_PARTIAL_WRITE);
126+
SSL_set_mode(ssl, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
125127
SSL_set_bio(ssl, ssl_bio, ssl_bio);
126128

127129
int ssl_error = 0;

0 commit comments

Comments
 (0)