Skip to content

Conversation

@c-bik
Copy link
Contributor

@c-bik c-bik commented Dec 15, 2022

This PR is a rather bold simplification 😅. With passing tests 💪 .
Please consider this as a proposal.

I don't have a stress test setup, so if you get a chance to take it for a spin first (without merging) I would be curious to know how that works out.

Lastly, I still believe enif_make_list_cell is a performance bottleneck! Since env is in task context, perhaps streaming logs back immediately as erlang messages as and when they are produced might help. I wanted to give that a shot too but ran out of time 😞.

@dergraf
Copy link
Owner

dergraf commented Dec 16, 2022

thanks, will look at it

return enif_make_badarg(env);
}
msc_rules_add_file(ctx->rules, (const char *)conf_file.data, &modsec_error);
msc_rules_add_file(rules, (const char *)conf_file.data, &modsec_error);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder how reloading the rules or rather "replacing" the rules would work (rule update scenario). Have you though about it?

@c-bik c-bik changed the base branch from multiple-nif-workers-experiment to main January 13, 2023 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants