Files and sockets in the APR API rely on pools, I see no way to create sockets/files without the use of apr_pools
. Problem is that apr_pools are not thread-safe, thus creating a socket in one thread and destroying it in another is problematic.
How did you solve this problem in your multi threaded program?
I have already asked this question on the apr mailing list, but there was no answer.