aboutsummaryrefslogtreecommitdiffstats
path: root/src/kvilib/net
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2020-05-15 04:01:58 +0200
committerGravatar Szymon Tomasz Stefanek2020-05-15 04:01:58 +0200
commitd989635aa9c096f1c730a64024c9e3ad559044bc (patch)
treeb70964db5cbb12b62a36a118c0bc40894cc44513 /src/kvilib/net
parentUpdate serverdb.kvc (diff)
downloadKVIrc-ignore-sigpipe.tar.gz
KVIrc-ignore-sigpipe.tar.bz2
KVIrc-ignore-sigpipe.zip
SIGPIPE should be already ignored globally. Simplify code to figure out what's going on with #2469 ignore-sigpipe
Diffstat (limited to 'src/kvilib/net')
-rw-r--r--src/kvilib/net/KviSSL.cpp14
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;
}