diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-06-25 09:47:56 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-06-25 09:47:56 +0200 |
commit | 2cd686d55589373a7f4747e7f1f5facf487201f6 (patch) | |
tree | 7ee9c91aa39d1ef2d861a6dee2f900933fce3ad4 /plugins/imtcp | |
parent | a73caef0b8d1cc9d83366b60034c7db95e797eee (diff) | |
download | rsyslog-2cd686d55589373a7f4747e7f1f5facf487201f6.tar.gz rsyslog-2cd686d55589373a7f4747e7f1f5facf487201f6.tar.bz2 rsyslog-2cd686d55589373a7f4747e7f1f5facf487201f6.zip |
imtcp: permit parameter name with typo for backward compatibility
Diffstat (limited to 'plugins/imtcp')
-rw-r--r-- | plugins/imtcp/imtcp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/imtcp/imtcp.c b/plugins/imtcp/imtcp.c index bf2c1fc6..2d9761cb 100644 --- a/plugins/imtcp/imtcp.c +++ b/plugins/imtcp/imtcp.c @@ -140,6 +140,7 @@ static struct cnfparamdescr modpdescr[] = { { "notifyonconnectionclose", eCmdHdlrBinary, 0 }, { "addtlframedelimiter", eCmdHdlrPositiveInt, 0 }, { "maxsessions", eCmdHdlrPositiveInt, 0 }, + { "maxlistners", eCmdHdlrPositiveInt, 0 }, { "maxlisteners", eCmdHdlrPositiveInt, 0 }, { "streamdriver.mode", eCmdHdlrPositiveInt, 0 }, { "streamdriver.authmode", eCmdHdlrString, 0 }, @@ -453,7 +454,8 @@ CODESTARTsetModCnf loadModConf->iAddtlFrameDelim = (int) pvals[i].val.d.n; } else if(!strcmp(modpblk.descr[i].name, "maxsessions")) { loadModConf->iTCPSessMax = (int) pvals[i].val.d.n; - } else if(!strcmp(modpblk.descr[i].name, "maxlisteners")) { + } else if(!strcmp(modpblk.descr[i].name, "maxlisteners") || + !strcmp(modpblk.descr[i].name, "maxlistners")) { /* keep old name for a while */ loadModConf->iTCPLstnMax = (int) pvals[i].val.d.n; } else if(!strcmp(modpblk.descr[i].name, "keepalive")) { loadModConf->bKeepAlive = (int) pvals[i].val.d.n; |