mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
ssl add SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER to server and client
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>
This commit is contained in:
parent
e254d9589d
commit
35c80f9885
2 changed files with 4 additions and 0 deletions
|
@ -125,6 +125,9 @@ int lws_client_socket_service(struct libwebsocket_context *context,
|
|||
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
|
||||
/*
|
||||
|
|
|
@ -301,6 +301,7 @@ int lws_server_socket_service(struct libwebsocket_context *context,
|
|||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue