napatech: Close streams on hard errors

Issue: 5172

This commit forces the current stream to be closed when a hard error
occurs.

Without this commit, a hard error will force a 2nd connection
the stream that raised the error.

With this commit, the stream with the hard error is closed before
opening another connection to the stream.

Verified with the Python snippet in the redmine issue.
pull/10469/head
Jeff Lucovsky 3 years ago committed by Victor Julien
parent f7114b7fe3
commit 1fdf3f644e

@ -908,6 +908,7 @@ TmEcode NapatechPacketLoop(ThreadVars *tv, void *data, void *slot)
NAPATECH_ERROR(status);
SCLogInfo("Failed to read from Napatech Stream %d: %s",
ntv->stream_id, error_buffer);
NapatechStreamThreadDeinit(tv, ntv);
break;
}

Loading…
Cancel
Save