Re: Most time spent on POE/Loop/Select.pm?

2010-03-03 Thread Andrew Feren
On 03/03/2010 03:22 PM, p...@0ne.us wrote: > Tip: The POE developers have spent years optimizing POE the best they > can. You can safely ignore the core POE modules from your profiling ( > POE::Loop::Select, POE::Kernel, etc ) and focus on your own code when > profiling. I both agree and disagree

Re: Bug #50907 blocks ActiveState auto-packaging of POE since May

2009-11-16 Thread Andrew Feren
Hmmm... I thought I had a ticket for the connect_errors failure, but I don't see it now. Maybe I just talked about it on IRC. I haven't played with this for a few weeks, but as I recall Windows is simply refusing to timeout the connection. If connect_errors.t is modified to use the Connect

Re: POE::Wheel::Run::Win32 and Win32::Daemon

2009-10-19 Thread Andrew Feren
Andreas Altergott wrote: Hi, Andrew Feren wrote: I removed the calls to exit() and the service started working as expected. Calling exit() from the child resulting from perl's pseudo fork is supposed to work (and often does). Unfortunately it has been my experience that sometime

Re: POE::Wheel::Run::Win32 and Win32::Daemon

2009-10-13 Thread Andrew Feren
er than what I have done. I would also take to heart his comment in rt bug 31458 that "reliance on Win32::Daemon would be adventurous". More comments inline below... Andreas Altergott wrote: Hi, Andrew Feren wrote: Andreas Altergott wrote: Did you try the suggested change?

Re: POE::Wheel::Run::Win32 and Win32::Daemon

2009-10-12 Thread Andrew Feren
Andreas Altergott wrote: Hi, Andrew Feren wrote: Something like the following will give you better results. my $pid; if($pid = fork()) { print(FOUT "running ($pid)\n"); wait(); } else { open(FOR, '>>', 'C:\d

Re: POE::Wheel::Run::Win32 and Win32::Daemon

2009-10-12 Thread Andrew Feren
In my experience Perl on Windows does not handle the (Program => \&foo) case well at all. I have had better luck with the (Program => sub { foo() }) case, but even that seems a bit iffy to me. I'm still waiting for someone who can explain why sub{ foo() } sometimes works when \&foo doesn't.

Re: POE::Wheel::Run::Win32 and Win32::Daemon

2009-10-12 Thread Andrew Feren
While I have several unresolved issues with fork on Windows I think they biggest problem with your script is that the fork logic backwards. Something like the following will give you better results. my $pid; if($pid = fork()) { print(FOUT "running ($pid)\n"); wai

Re: I need some help with POE::Wheel::Run on Windows

2009-10-02 Thread Andrew Feren
t went into trying to get the original patch right. I'd really love understand why this code is needed (on not). So far all of my tests have performed identically (other than the leak) with or without the _SetStdHandle() calls. -Andrew Rocco Caputo wrote: First, thanks to Andrew Feren,

Re: session not stopping

2009-09-30 Thread Andrew Feren
What version of POE are you running? I gather from your other email that you are running on Win32. Having the app work for a minute or so and then hang sounds suspiciously like https://rt.cpan.org/Ticket/Display.html?id=49379 -Andrew Andreas Altergott wrote: Hi, my session is behaving str

Re: running POE as a windows service

2009-09-30 Thread Andrew Feren
PerlSvc works fine with POE. I have several apps that use it. Not sure about the cross compiling. At work we have both Win32 and Linux application, but we build natively on each platform. -Andrew Andrew O'Brien wrote: Hi Andreas, I was trying to find a solution how to run POE applicati

Re: Suggestions on which poe DBI module to use

2009-04-28 Thread Andrew Feren
}; if ($@) {... } -Andrew Andrew Feren wrote: It's been a while since I looked at all of these. I have some code using EasyDBI and other code using SimpleDBI. Initially EasyDBI was the only one I could get to work on both Linux and Windows. As of version 1.27 SimpleDBI also works on both

Re: Suggestions on which poe DBI module to use

2009-04-28 Thread Andrew Feren
I've only read through the code so far, but here are a couple of thoughts. I thought '' should be specified for unused EasyDBI aliases rather than 'not_used'. Although I like the self documenting nature of 'not_used'. This seems straight forward enough and looks like what you advertised. I

Re: Suggestions on which poe DBI module to use

2009-04-27 Thread Andrew Feren
I've been starting to implement something similar so I'd love to see this. -Andrew Phil Whelan wrote: Hi, I like POE-Component-EasyDBI Actually, I've written a wrapper module POE-Component-EasyDBI-Multiplex, which I've not yet made public, but we're using to manage a pool of EasyDBI connectio

Re: Suggestions on which poe DBI module to use

2009-04-27 Thread Andrew Feren
It's been a while since I looked at all of these. I have some code using EasyDBI and other code using SimpleDBI. Initially EasyDBI was the only one I could get to work on both Linux and Windows. As of version 1.27 SimpleDBI also works on both platforms. EasyDBI seems to offer a few more spe

Re: Activestate perlapp creates exe that hangs

2009-04-22 Thread Andrew Feren
I don't use Tk, but I do use perlapp and POE. The attached script works compiled with perlapp and as a vanilla perl script. (By works I mean no more error messages when compiled. The script still doesn't *do* anything ;-) The important magic seems to be use POE qw (Loop::TkActiveState);