gaby64 at githib found this option is necessary when using SSL with the
truncated send support
Signed-off-by: Andy Green <andy.green@linaro.org>
if (wsi->use_ssl && !wsi->ssl) {
wsi->ssl = SSL_new(context->ssl_client_ctx);
+ SSL_set_mode(wsi->ssl,
+ SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
+
#ifdef USE_CYASSL
/*
openssl_websocket_private_data_index, context);
SSL_set_fd(new_wsi->ssl, accept_fd);
+ SSL_set_mode(new_wsi->ssl, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
#ifdef USE_CYASSL
CyaSSL_set_using_nonblock(new_wsi->ssl, 1);