path: root/src/mcast.c
diff options
authorPablo Neira Ayuso <>2009-07-19 15:31:25 +0200
committerPablo Neira Ayuso <>2009-07-19 15:31:25 +0200
commit4694ae1e0939f69f4d2696b0caff62ce6a17d92f (patch)
treef0bef91fab2792c0e653ef38293642b812ff51f6 /src/mcast.c
parent651794575c844fe25a717d77bd088c51383067f0 (diff)
conntrackd: improve handling of external messages
With this patch, a) we set the file descriptors for the synchronization channels as non-blocking, b) we perform more than one recv() call per select() signal on the socket and c) we limit the iteration to the value that EventIterationLimit has set. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'src/mcast.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mcast.c b/src/mcast.c
index 600fdc2..ec11100 100644
--- a/src/mcast.c
+++ b/src/mcast.c
@@ -288,7 +288,8 @@ ssize_t mcast_recv(struct mcast_sock *m, void *data, int size)
(struct sockaddr *)&m->addr,
if (ret == -1) {
- m->stats.error++;
+ if (errno != EAGAIN)
+ m->stats.error++;
return ret;