In case of redis outage, the redis session was reset but the replies
were still fetch even if there is none replies in the new session.
(cherry picked from commit
21431f166c337a7d3dd8ff8cc3aacbe686414ae3)
redis = ctx->sync;
if (redis) {
SCLogInfo("Reconnected to redis server");
+ redisAppendCommand(redis, "%s %s %s",
+ file_ctx->redis_setup.command,
+ file_ctx->redis_setup.key,
+ string);
+ ctx->batch_count++;
+ return 0;
} else {
SCLogInfo("Unable to reconnect to redis server");
return -1;