summaryrefslogtreecommitdiffstats
path: root/runtime/netstrm.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-02 13:11:18 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-02 13:11:18 +0200
commitb61e5fffc42c98b49a18a95c297653fb0ba06b72 (patch)
tree48dec238d72f866ce520fedbdb0cc0f82bfed943 /runtime/netstrm.c
parent05ba5fc29fb13857b6fbb7c8f3c22489da3e73cf (diff)
downloadrsyslog-b61e5fffc42c98b49a18a95c297653fb0ba06b72.tar.gz
rsyslog-b61e5fffc42c98b49a18a95c297653fb0ba06b72.tar.xz
rsyslog-b61e5fffc42c98b49a18a95c297653fb0ba06b72.zip
strmsrv now supports KEEPALIVE socket option
Diffstat (limited to 'runtime/netstrm.c')
-rw-r--r--runtime/netstrm.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/netstrm.c b/runtime/netstrm.c
index 05bb25c0..3658006f 100644
--- a/runtime/netstrm.c
+++ b/runtime/netstrm.c
@@ -233,6 +233,19 @@ Send(netstrm_t *pThis, uchar *pBuf, ssize_t *pLenBuf)
RETiRet;
}
+/* Enable Keep-Alive handling for those drivers that support it.
+ * rgerhards, 2009-06-02
+ */
+static rsRetVal
+EnableKeepAlive(netstrm_t *pThis)
+{
+ DEFiRet;
+ ISOBJ_TYPE_assert(pThis, netstrm);
+ iRet = pThis->Drvr.EnableKeepAlive(pThis->pDrvrData);
+ RETiRet;
+}
+
+
/* check connection - slim wrapper for NSD driver function */
static void
@@ -337,6 +350,7 @@ CODESTARTobjQueryInterface(netstrm)
pIf->SetDrvrPermPeers = SetDrvrPermPeers;
pIf->CheckConnection = CheckConnection;
pIf->GetSock = GetSock;
+ pIf->EnableKeepAlive = EnableKeepAlive;
finalize_it:
ENDobjQueryInterface(netstrm)