Re: Combining services.

2013-02-02 Thread Antti Linno
, Rocco Caputo rcap...@pobox.com wrote: Don't use an asynchronous client if you don't need one. The cookbook includes examples using POE::Filter::Reference by itself. -- Rocco Caputo rcap...@pobox.com On Jan 31, 2013, at 09:41, Antti Linno wrote: Hm, as my needs for application server

Re: Combining services.

2013-01-31 Thread Antti Linno
at 7:29 PM, Antti Linno antti.li...@gmail.com wrote: Thank you. You saved me from fourth standalone daemon :D On Wed, Jan 30, 2013 at 5:09 PM, Rocco Caputo rcap...@pobox.com wrote: On Jan 30, 2013, at 09:49, Antti Linno wrote: Or I need advice, how to merge several sungo's( http

Combining services.

2013-01-30 Thread Antti Linno
Hello. I need help in consolidating services. Tried to read documentation, but didn't understand much. Checked cookbook and found a couple of suitable examples and as the time was pressing, just started services. Went with sungo's TCP server and UDP socket recipe. Now I have 3 tcp programs

Re: Combining services.

2013-01-30 Thread Antti Linno
Thank you. You saved me from fourth standalone daemon :D On Wed, Jan 30, 2013 at 5:09 PM, Rocco Caputo rcap...@pobox.com wrote: On Jan 30, 2013, at 09:49, Antti Linno wrote: Or I need advice, how to merge several sungo's( http://poe.perl.org/?POE_Cookbook/TCP_Servers) daemons into one

Re: POE, log4perl and sqlite

2012-10-19 Thread Antti Linno
and application import database functions. I have snipped the application and database somewhat, but you could see the main structure and how I am doing the logging. Greetings. On Thu, Oct 18, 2012 at 4:19 PM, Rocco Caputo rcap...@pobox.com wrote: On Oct 18, 2012, at 07:58, Antti Linno wrote: First of all, I

Re: POE, log4perl and sqlite

2012-10-19 Thread Antti Linno
. Maybe you could optimize the table indexes so the queries complete in time. -- Rocco Caputo rcap...@pobox.com On Oct 19, 2012, at 07:04, Antti Linno wrote: Thank you for your kind interest. The pastebins: log4perl.conf http://pastebin.com/nY4twgjS main file http://pastebin.com/ruYsu2qt

Re: POE, log4perl and sqlite

2012-10-18 Thread Antti Linno
for your time. On Wed, Oct 17, 2012 at 6:38 PM, p...@perlmeister.com wrote: On Mon, 15 Oct 2012, Antti Linno wrote: 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

POE, log4perl and sqlite

2012-10-15 Thread Antti Linno
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

Cookbook's Sungo TCP server, rejected connections and stress test?

2012-03-26 Thread Antti Linno
Hi. I'm using Sungo's Cookbook TCP server (Using SocketFactory and ReadWrite). The devices that connect to this server are gprs enabled terminals(iButton devices). Sometimes the terminals are having a delay of couple hours when sending a data. When I wiresharked the session, experts said, that