POE, log4perl and sqlite
[email protected] (Antti Linno) Mon, 15 Oct 2012 10:11:32 +0300
| Newsgroups | perl.poe |
|---|---|
| Message-ID | <CA+9KM+JpH+RU0vcPexQ9OgjP6poYL67+Z=wH7nMMDvJmjQrnOQ@mail.gmail.com> |
Good day. I'm using a bit modified Sungo's TCP server (Using SocketFactory and ReadWrite). I'm using a plain Log4perl, not POE::Log4perl. Yesterday I got a crash with sqlite database lock. So basically I have 2 questions: 1) Do POE's sessions run in parallel? (ok, this might be obvious, but I have to be sure :) This might explain the database lock, as parallel session could write at the same time. Oddly this crash happens rarely. 2) Does POE::Component::Log4perl cure this problem? If there is no cure, will there be a problem with file based logging? I can switch from SQL to grep based search. Thanks, Antti