diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-16 08:46:45 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-16 08:46:45 +0200 |
commit | 015d17ca70e81ad998e32cdfeed3cd925fd7dedc (patch) | |
tree | 9e4a547346b72709551b2122f67a158812330fe0 /tcpsrv.c | |
parent | e893a5916473c45d6b90dc2401637fe713133291 (diff) | |
download | rsyslog-015d17ca70e81ad998e32cdfeed3cd925fd7dedc.tar.gz rsyslog-015d17ca70e81ad998e32cdfeed3cd925fd7dedc.tar.xz rsyslog-015d17ca70e81ad998e32cdfeed3cd925fd7dedc.zip |
some performance optimizations
- saved gettimeofday() calls in imtcp (and increased reception buffer)
- somewhat optimized stringbuf.c
- some other optimizations
Diffstat (limited to 'tcpsrv.c')
-rw-r--r-- | tcpsrv.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -105,6 +105,7 @@ addNewLstnPort(tcpsrv_t *pThis, uchar *pszPort) pEntry->pszPort = pszPort; pEntry->pSrv = pThis; CHKmalloc(pEntry->pszInputName = ustrdup(pThis->pszInputName)); + pEntry->lenInputName = ustrlen(pEntry->pszInputName); /* and add to list */ pEntry->pNext = pThis->pLstnPorts; @@ -510,7 +511,7 @@ Run(tcpsrv_t *pThis) while(nfds && iTCPSess != -1) { CHKiRet(nssel.IsReady(pSel, pThis->pSessions[iTCPSess]->pStrm, NSDSEL_RD, &bIsReady, &nfds)); if(bIsReady) { - char buf[8*1024]; /* reception buffer - may hold a partial or multiple messages */ + char buf[128*1024]; /* reception buffer - may hold a partial or multiple messages */ dbgprintf("netstream %p with new data\n", pThis->pSessions[iTCPSess]->pStrm); /* Receive message */ |