Do you have a question? Post it now! No Registration Necessary. Now with pictures!
June 25, 2005, 12:51 pm
rate this thread
I am trying to port my website wich uses a plain-text-files database to
use MySQL, the problem is, it runs in a multithreaded environment, so I
need thread-safe modules to connect to the MySQL server.
According to the DBI ( + DBD::mysql) documentation, it is highly
unrecommended to use those modules in a multithreaded environment, I
found the pure perl module Net::MySQL, but I don't really know wether
Net::MySQL is really thread-safe, since it uses IO::Socket.
So, my question is pretty straight-forward: Are Net::MySQL and
IO::Socket thread-safe, or are there other thread-safe
Has anyone got some experience with thread-safety of CPAN modules, or
is there information about the thread-safety of CPAN modules somewhere?
thnx in advance,
- » FAQ 3.16 How can I make my Perl program take less memory?
- — Previous thread in » PERL Discussions