summaryrefslogtreecommitdiffstats
path: root/runtime/nsdpoll_ptcp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-01-27 16:33:13 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-01-27 16:33:13 +0100
commitc6447bb3452e9ac3c4daed5827f711c2c6956ca4 (patch)
tree0ec04ea9646cc7faa0c97a81c6c595e14d0beb4d /runtime/nsdpoll_ptcp.c
parent3049f535fff9d351480bceb7ea82667176a7c8a2 (diff)
downloadrsyslog-c6447bb3452e9ac3c4daed5827f711c2c6956ca4.tar.gz
rsyslog-c6447bb3452e9ac3c4daed5827f711c2c6956ca4.tar.xz
rsyslog-c6447bb3452e9ac3c4daed5827f711c2c6956ca4.zip
experimental: added thread pool to tcpsrv epoll handler
this seems to work in lab, but is brand-new code. needs practice drill.
Diffstat (limited to 'runtime/nsdpoll_ptcp.c')
-rw-r--r--runtime/nsdpoll_ptcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/nsdpoll_ptcp.c b/runtime/nsdpoll_ptcp.c
index 26810b7d..76c4e887 100644
--- a/runtime/nsdpoll_ptcp.c
+++ b/runtime/nsdpoll_ptcp.c
@@ -70,7 +70,8 @@ addEvent(nsdpoll_ptcp_t *pThis, int id, void *pUsr, int mode, nsd_ptcp_t *pSock,
pNew->id = id;
pNew->pUsr = pUsr;
pNew->pSock = pSock;
- pNew->event.events = 0; /* TODO: at some time we should be able to use EPOLLET */
+ //pNew->event.events = 0; /* TODO: at some time we should be able to use EPOLLET */
+ pNew->event.events = EPOLLET;
if(mode & NSDPOLL_IN)
pNew->event.events |= EPOLLIN;
if(mode & NSDPOLL_OUT)