Security apr_pool when using apache runtime library

Files and sockets in the APR API rely on pools, I do not see the ability to create sockets / files without using apr_pools . The problem is that apr_pools are not thread safe, so creating a socket in one thread and destroying it in another is problematic. How did you solve this problem in your multithreaded program?

I already asked this question on the apr mailing list, but there was no answer.

+4
source share

Source: https://habr.com/ru/post/1395665/


All Articles