From 5b13468bfcbbd5d5a2a9743b317d2e5a9c3a5afe Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Fri, 24 Apr 2020 10:27:20 -0400 Subject: [PATCH] dag: Check for out-of-band control operations This commit causes the packet source to check for out of band control operations when there are no packets immediately available. --- src/source-erf-dag.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/source-erf-dag.c b/src/source-erf-dag.c index a248103702..71be63fc34 100644 --- a/src/source-erf-dag.c +++ b/src/source-erf-dag.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2010-2014 Open Information Security Foundation +/* Copyright (C) 2010-2020 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free @@ -349,6 +349,7 @@ ReceiveErfDagLoop(ThreadVars *tv, void *data, void *slot) if (top == NULL) { if (errno == EAGAIN) { if (dtv->dagstream & 0x1) { + TmThreadsCaptureHandleTimeout(tv, dtv->slot, NULL); usleep(10 * 1000); dtv->btm = dtv->top; }