2 # 16134419 rsyslogd forwarding over TCP does not detect server restart |
2 # 16134419 rsyslogd forwarding over TCP does not detect server restart |
3 # which was fixed in upstream version 6.4.1; this patch is a minor variant |
3 # which was fixed in upstream version 6.4.1; this patch is a minor variant |
4 # on the upstream patch, adapted for 6.2.0 . This can go away once we |
4 # on the upstream patch, adapted for 6.2.0 . This can go away once we |
5 # upgrade to 6.4.1 or later. |
5 # upgrade to 6.4.1 or later. |
6 --- rsyslog/runtime/netstrm.c.orig 2012-01-09 06:05:45.000000000 -0800 |
6 --- rsyslog/runtime/netstrm.c.orig 2012-01-09 06:05:45.000000000 -0800 |
7 +++ rsyslog/runtime/netstrm.c 2014-01-29 10:16:47.131765870 -0800 |
7 +++ rsyslog/runtime/netstrm.c 2013-12-02 09:14:19.766000221 -0800 |
8 @@ -250,11 +250,13 @@ |
8 @@ -250,7 +250,7 @@ |
9 |
9 |
10 |
10 |
11 /* check connection - slim wrapper for NSD driver function */ |
11 /* check connection - slim wrapper for NSD driver function */ |
12 -static void |
12 -static void |
13 +static rsRetVal |
13 +static rsRetVal |
14 CheckConnection(netstrm_t *pThis) |
14 CheckConnection(netstrm_t *pThis) |
15 { |
15 { |
16 + DEFiRet; |
|
17 ISOBJ_TYPE_assert(pThis, netstrm); |
16 ISOBJ_TYPE_assert(pThis, netstrm); |
18 - pThis->Drvr.CheckConnection(pThis->pDrvrData); |
|
19 + iRet = pThis->Drvr.CheckConnection(pThis->pDrvrData); |
|
20 + RETiRet; |
|
21 } |
|
22 |
|
23 |
|
24 --- rsyslog/runtime/netstrm.h~ 2011-12-01 02:26:19.000000000 -0800 |
17 --- rsyslog/runtime/netstrm.h~ 2011-12-01 02:26:19.000000000 -0800 |
25 +++ rsyslog/runtime/netstrm.h 2013-12-02 09:30:45.155766988 -0800 |
18 +++ rsyslog/runtime/netstrm.h 2013-12-02 09:30:45.155766988 -0800 |
26 @@ -53,7 +53,7 @@ |
19 @@ -53,7 +53,7 @@ |
27 rsRetVal (*SetDrvrMode)(netstrm_t *pThis, int iMode); |
20 rsRetVal (*SetDrvrMode)(netstrm_t *pThis, int iMode); |
28 rsRetVal (*SetDrvrAuthMode)(netstrm_t *pThis, uchar*); |
21 rsRetVal (*SetDrvrAuthMode)(netstrm_t *pThis, uchar*); |