diff options
Diffstat (limited to 'src/kvilib')
| -rw-r--r-- | src/kvilib/net/KviSSL.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/kvilib/net/KviSSL.cpp b/src/kvilib/net/KviSSL.cpp index 1ff7e7b4f..12b25baad 100644 --- a/src/kvilib/net/KviSSL.cpp +++ b/src/kvilib/net/KviSSL.cpp @@ -322,22 +322,10 @@ void KviSSL::shutdown() { if(m_pSSL) { - //avoid to die on a SIGPIPE if the connection has close (SSL_shutdown can call send()) - //see bug #440 - -#if !(defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)) - // ignore SIGPIPE - signal(SIGPIPE, SIG_IGN); - // At least attempt to shutdown the connection gracefully - if(!SSL_in_init(m_pSSL)) - SSL_shutdown(m_pSSL); - //restore normal SIGPIPE behaviour. - signal(SIGPIPE, SIG_DFL); -#else // At least attempt to shutdown the connection gracefully if(!SSL_in_init(m_pSSL)) SSL_shutdown(m_pSSL); -#endif + SSL_free(m_pSSL); m_pSSL = nullptr; } |
