See this thread for a similar case.
I ended up isolating the SSL bits of code in a separate script, and using bi-di IPC (see: IPC::Open2) to circumvent the issue of Crypt::SSLeay not being thread-safe. If you don't need bi-di communication, just use perl's open.
In reply to Re: Thread-safe SSL IMAP
by onelesd
in thread Thread-safe SSL IMAP
by gxbacher
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |