Skip to content

How to use pm operator with mutex ? #1954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
luchy0120 opened this issue Nov 14, 2018 · 2 comments
Closed

How to use pm operator with mutex ? #1954

luchy0120 opened this issue Nov 14, 2018 · 2 comments
Assignees

Comments

@luchy0120
Copy link

Dear Modsecurity team , I want to ask when using Modsecurity with pm operator , whether we should add --enable-mutex-on-pm during configuration .
Is it used under multithread situation ?

@luchy0120 luchy0120 changed the title How to use pm operator ? How to use pm operator with mutex ? Nov 14, 2018
@zimmerle
Copy link
Contributor

Hi @luchy0120,

This is not meant to be used in a regular environment. That was implemented to facilitate the testing of the library in different environments. Should be safe to use without the mutex. Do you have any specific use case that you can think in a benefit of using it?

@zimmerle zimmerle self-assigned this Nov 14, 2018
@luchy0120
Copy link
Author

Hi @zimmerle , is acmp_process_quick thread-safe ? Could pm be used in a multi-thread environment ?

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

No branches or pull requests

2 participants