ssl close improvement
This commit is contained in:
parent
297c0313fa
commit
dc4934d2bc
1 changed files with 6 additions and 0 deletions
|
@ -437,7 +437,13 @@ just_kill_connection:
|
|||
!wsi->socket_is_permanently_unusable) {
|
||||
#ifdef LWS_OPENSSL_SUPPORT
|
||||
if (lws_is_ssl(wsi) && wsi->ssl)
|
||||
{
|
||||
lwsl_info("%s: shutting down SSL connection: %p (ssl %p, sock %d, state %d)\n", __func__, wsi, wsi->ssl, (int)(long)wsi->sock, wsi->state);
|
||||
n = SSL_shutdown(wsi->ssl);
|
||||
if (n == 0) /* Complete bidirectional SSL shutdown */
|
||||
n = SSL_shutdown(wsi->ssl);
|
||||
n = shutdown(wsi->sock, SHUT_WR);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue