bugfix (kind of): check if TCP connection is still alive if using TLS
Jonathan Bond-Caron [Wed, 25 Nov 2009 15:35:54 +0000 (16:35 +0100)]
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>

ChangeLog
runtime/nsd_gtls.c

index 270f9bc..2fe1419 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@ Version 4.5.7  [v4-beta] (rgerhards), 2009-11-18
   be generated only after the process has started, but not right from
   the beginning. This is assumed to be useful for hard-to-find bugs.
   Also improved the doc on the debug system.
+- bugfix (kind of): check if TCP connection is still alive if using TLS
+  Thanks to Jonathan Bond-Caron for the patch.
 - bugfix [imported from 4.4.3]: $ActionExecOnlyOnceEveryInterval did
   not work.
 ---------------------------------------------------------------------------
index 79ceffb..fb2e219 100644 (file)
@@ -1325,7 +1325,10 @@ finalize_it:
 static void
 CheckConnection(nsd_t __attribute__((unused)) *pNsd)
 {
-       /* dummy, do nothing */
+       nsd_gtls_t *pThis = (nsd_gtls_t*) pNsd;
+       ISOBJ_TYPE_assert(pThis, nsd_gtls);
+
+       nsd_ptcp.CheckConnection(pThis->pTcp);
 }