You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by cl...@apache.org on 2022/09/15 17:33:05 UTC
[qpid-proton] 02/02: PROTON-2613: TLS OpenSSL library: fix SSL_write configuration for partial writes
This is an automated email from the ASF dual-hosted git repository.
cliffjansen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
commit c1171d9ab347cbd1442a7f77ad6dd4db74f8619b
Author: Clifford Jansen <cl...@apache.org>
AuthorDate: Thu Sep 15 10:25:12 2022 -0700
PROTON-2613: TLS OpenSSL library: fix SSL_write configuration for partial writes
---
c/src/tls/openssl.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/c/src/tls/openssl.c b/c/src/tls/openssl.c
index c05e09b99..4aadc8861 100644
--- a/c/src/tls/openssl.c
+++ b/c/src/tls/openssl.c
@@ -1205,6 +1205,9 @@ static int init_ssl_socket(pn_tls_t *ssl, pn_tls_config_t *domain)
return -1;
}
+ // Enable "write as much as you hve buffer space for", similar to BIOs and raw sockets.
+ SSL_set_mode(ssl->ssl, SSL_MODE_ENABLE_PARTIAL_WRITE);
+
// store backpointer
SSL_set_ex_data(ssl->ssl, tls_ex_data_index, ssl);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org