[Pkg-voip-commits] [resiprocate] 01/03: Stop logging errors when peer shuts down TLS cleanly.
Daniel Pocock
pocock at moszumanska.debian.org
Sun Mar 22 20:20:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
pocock pushed a commit to branch debian-jessie-tls-fixes
in repository resiprocate.
commit 7cbd1c21f6ea6dcfe4708da6b616bc4663ab5718
Author: Daniel Pocock <daniel at pocock.pro>
Date: Sun Mar 22 19:29:20 2015 +0100
Stop logging errors when peer shuts down TLS cleanly.
---
debian/patches/0003-log-tls-clean-shutdown.patch | 30 ++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 31 insertions(+)
diff --git a/debian/patches/0003-log-tls-clean-shutdown.patch b/debian/patches/0003-log-tls-clean-shutdown.patch
new file mode 100644
index 0000000..94156ba
--- /dev/null
+++ b/debian/patches/0003-log-tls-clean-shutdown.patch
@@ -0,0 +1,30 @@
+diff --git a/resip/stack/ssl/TlsConnection.cxx b/resip/stack/ssl/TlsConnection.cxx
+index c3537aa..fb80323 100644
+--- a/resip/stack/ssl/TlsConnection.cxx
++++ b/resip/stack/ssl/TlsConnection.cxx
+@@ -445,6 +445,12 @@ TlsConnection::read(char* buf, int count )
+ return 0;
+ }
+ break;
++ case SSL_ERROR_ZERO_RETURN:
++ {
++ DebugLog( << "Got SSL_ERROR_ZERO_RETURN (TLS shutdown by peer)");
++ return -1;
++ }
++ break;
+ default:
+ {
+ handleOpenSSLErrorQueue(bytesRead, err, "SSL_read");
+@@ -532,6 +538,12 @@ TlsConnection::write( const char* buf, int count )
+ return 0;
+ }
+ break;
++ case SSL_ERROR_ZERO_RETURN:
++ {
++ DebugLog( << "Got SSL_ERROR_ZERO_RETURN (TLS shutdown by peer)");
++ return -1;
++ }
++ break;
+ default:
+ {
+ handleOpenSSLErrorQueue(ret, err, "SSL_write");
diff --git a/debian/patches/series b/debian/patches/series
index 123eaf0..01a37f5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-use-SSLv23_method.patch
0002-client-avoid-TLSv1_2.patch
+0003-log-tls-clean-shutdown.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/resiprocate.git
More information about the Pkg-voip-commits
mailing list