Re: Win32 Wheel::Run Issues (Reformated)

2007-06-25 Thread Matt S Trout
emulated via thread spawn and win32 is restricting you to that many threads. I'm not enough of a win32ist to be able to be sure of that or tell you what you need to do to fix it though, sorry. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Dire

Re: EasyDBI replacement!

2007-06-20 Thread Matt S Trout
ur own code leaking memory. I'd recommend Devel::Leak and Devel::LeakTrace::Fast. Quick thought: if you're doing lots of random SQL statements and you've told EasyDBI to use prepare_cached then it's going to hang onto a -lot- of $sth objects and you might find that periodically f

Re: EasyDBI replacement!

2007-06-19 Thread Matt S Trout
a cross platform replacement? Hopefully something that > will work on Windows and Linux. "known issue" according to whom? If there's a bug it should be reported and fixed. Trying to find a replacement instead of fixing what's there is just silly ... -- Matt S Trou

Re: Announce : POE::Component::Daemon

2006-02-23 Thread Matt S Trout
On Wed, Feb 22, 2006 at 11:22:41PM -0500, [EMAIL PROTECTED] wrote: > > Good evening ladies and gentlehackers. > > Welcome to the long delayed first public release of POE::Component::Daemon. > > http://search.cpan.org/~gwyn/POE-Component-Daemon-0.10/ *applause* --

Re: Problem with sessions

2005-11-02 Thread Matt S Trout
uffer and start sending me stuff in real time" ? -- Matt S Trout Specialists in Perl consulting, web development, and Technical DirectorUNIX/Linux systems architecture and automation. Mail Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more informatio

Re: Unuse modules

2005-11-02 Thread Matt S Trout
it looks. > >Not reliably. But then again, you shouldn't leak. > > Not leaking. But maybe running fat modules. Do you have any info about how > to do it? Have a look at the way Apache::Reload, Module::Refresh et. al. do it (and have a quick nose round CPAN, there's at lea

Re: Perl2Exe and POE on Linux

2005-09-30 Thread Matt S Trout
een validated to work on RedHat Linux with > Perl2Exe? > I've made it work with Win32, but will also need to make it work on HP-UX, > AIX and Solaris. > > Best Regards, > > Scott Neibarger -- Matt S Trout Specialists in perl consulting, web development, and Techni

Re: Wheel::Run and Proc::Daemon troubles

2005-09-08 Thread Matt S Trout
ventually made it into trunk - NoSetSid When true, NoSetSid disables setsid() in the child process. By default, setsid() is called to execute the child process in a separate Unix session. Ta-dah! Your POE::Wheel::Run child processes will be reaped on parent exit :) -- Matt S Trout

Re: POElitically incorrect question

2005-09-06 Thread Matt S Trout
OE event, maybe that could be > something dynamic. Have a look at Business::Bof, which uses POE to make arbitrary methods available over SOAP. I spent quite a lot of time chatting to Kaare Rasmussen (the author), and I think he's done a damn fine job with it. -- Matt S Trout Specialis

Re: using POE in a object being called procedurally

2005-09-05 Thread Matt S Trout
On Mon, Sep 05, 2005 at 02:34:51PM -0500, Jay Strauss wrote: > Matt S Trout wrote: > >On Sun, Sep 04, 2005 at 05:54:12PM -0500, Jay Strauss wrote: > > > >>Is there a better way? > > > > > >Try the following (lines still starting > are untouched) -

Re: using POE in a object being called procedurally

2005-09-05 Thread Matt S Trout
es => { send_quote => sub { $new->send_quote(@_); }, > }, > ); > >return $class->SUPER::new($arg); > } This is how I tend to do it - note that the object now doesn't have a reference to the session because the session has several to

Re: namespace request - PoCo::Server::MDP

2005-08-27 Thread Matt S Trout
seems to overlap with Server. > POE::Component::MDP::QueueProvider still has some length to it, but > it sounds a lot less redundant. I assume there will be a lot of > modules below POE::Component::MDP. POE::Server::MessageBus POE::Component::MessageBus::Client ? -- Matt

Re: Do I need to kill HEAP variables in _stop ?

2005-06-17 Thread Matt S Trout
llected. So of course POE will, unless you've got a reference do that variable somewhere else. > thx That is *not* english. Unless you're 15, in America, and borrowing your mum's AOL account. Try "thanks". -- Matt S Trout Website: http://www.s

Re: How to make merged HASH for 2 packages ?

2005-06-09 Thread Matt S Trout
ll point to the same variable. -- Matt S Trout Website: http://www.shadowcatsystems.co.uk Technical DirectorE-mail: mst (at) shadowcatsystems.co.uk Shadowcat Systems Ltd.

Re: Delay and MUD programming

2005-05-22 Thread Matt S Trout
ffer STDOUT and see if it works then (or use warn instead of print since STDERR is unbuffered by default). -- Matt S Trout Website: http://www.shadowcatsystems.co.uk Technical DirectorE-mail: mst (at) shadowcatsystems.co.uk Shadowcat Systems Ltd.

Re: How to modify HEAP variables in subs...

2005-05-17 Thread Matt S Trout
ocs :) - sub success_event_handler { ... my ($handle_id, $datatype, $data, $userdata) = @_[ARG0..ARG3]; ... } $userdata is whatever you passed as UserData => to the original LaDBI post. That do the trick? -- Matt S Trout Website: http://www.shadowcatsystems.co.uk T

Re: How to modify HEAP variables in subs...

2005-05-17 Thread Matt S Trout
the database do the work with the data? If you need information from the main event then either stick it in the HEAP or pass it along as an argument to the yield. -- Matt S Trout Website: http://www.shadowcatsystems.co.uk Technical DirectorE-mail: mst (at) shadowcatsystems.co.uk Shadowcat Systems Ltd.

Re: How to modify HEAP variables in subs...

2005-05-16 Thread Matt S Trout
driven programming" provided a bunch of tutorials that might help you there. If it's any consolation, POE took me a while to wrap my brain around too :) -- Matt S Trout Website: http://www.shadowcatsystems.co.uk Technical DirectorE-mail: mst (at) shadowcatsystems.co.uk Shadowcat Systems Ltd.

Re: How to modify HEAP variables in subs...

2005-05-16 Thread Matt S Trout
;, it must be 1(cause of ++). Er, no. "yield" means "put this event in the queue to be run", so your "two" events aren't going to get called until after the "one" event exits. Replace the print with $_[KERNEL]->yield("three"); and add

Re: LaDBI multiple connections problem Re: SimpleDBI - the same.

2005-05-05 Thread Matt S Trout
stop and it hasn't actually finished shutting down by the time you spawn another connection? -- Matt S TroutBrag sheet:http://trout.me.uk/services.html LAMP, InfrastructureContact: [EMAIL PROTECTED] and Automation specialist Do it once. Do it right.

Re: How to make as much childs as possible, but not more than 50% of CPU

2005-05-03 Thread Matt S Trout
chine's idle > CPU percent? ln -s /dev/random /dev/idle_percent is probably going to be as close to reliable as anything else :) -- Matt S TroutBrag sheet:http://trout.me.uk/services.html LAMP, InfrastructureContact: [EMAIL PROTECTED]

Re: Sanity Check

2005-04-30 Thread Matt S Trout
pain in the neck, anyway :) -- Matt S TroutBrag sheet:http://trout.me.uk/services.html LAMP, InfrastructureContact: [EMAIL PROTECTED] and Automation specialist Do it once. Do it right.

Re: Where would I find the difference between post and yield?

2005-03-27 Thread Matt S Trout
hey take... perldoc POE::Kernel -- Matt S TroutBrag sheet:http://trout.me.uk/services.html LAMP, InfrastructureContact: [EMAIL PROTECTED] and Automation specialist Do it once. Do it right.

Re: anyone using any of the HTTP server components in a heavy use environment?

2005-03-26 Thread Matt S Trout
sary, but I think there're a few people wanting copies now :) -- Matt S TroutBrag sheet:http://trout.me.uk/services.html LAMP, InfrastructureContact: [EMAIL PROTECTED] and Automation specialist Do it once. Do it right.

Re: Timing issues with PoCo::HTTPD and PoCo::IRC?

2005-03-13 Thread Matt S Trout
> Yet the console output always comes out like so: > > DEBUG: Outputting Page > DEBUG: Whois Event Triggered > > So of course, when the next query comes around, the first query is > still sitting on the heap, so it gets used, then overwritten, etc... > > What fundamental fa

Re: Poco-Server-IRC : Proposals for server to server protocol

2004-11-23 Thread Matt S Trout
On Fri, Nov 19, 2004 at 08:10:24PM +, Kidney Bingos wrote: > Hey, > > Just a bit of a ramble regarding the issues surrounding the implementation of > the server to server protocol in POE::Component::Server::IRC and a request > for comments. > So what I am proposing is to "enhance" the serve

Re: POE::Component::Client::Ident doesn?t tolerant identd answers with just \n as line seperator

2004-11-10 Thread Matt S Trout
On Tue, Nov 09, 2004 at 05:26:29PM -0500, sungo wrote: > On (11/09 22:13), Markus M?ller wrote: > > > Strictly seen, you?re right. The RFC needs \r\n. But you shouldn?t > > ignore that this RFC is very old. > > the tcp spec is old and we still follow it. if the rfc says \r\n, that's > what you

Re: POE + database access

2004-11-08 Thread Matt S Trout
On Mon, Nov 08, 2004 at 08:10:52PM -0500, Oliver Klozoff wrote: > Matt S Trout wrote: > > >I think the problem's in FreeTDS. I've seen similar behaviour in non-POE > >apps > >using it. I'd suggest you implement some sort of health-check that restarts &g

Re: POE + database access

2004-11-08 Thread Matt S Trout
On Mon, Nov 08, 2004 at 03:45:27PM -0500, Oliver Klozoff wrote: > > From: David Davis [mailto:[EMAIL PROTECTED] > > Sent: Monday, November 08, 2004 2:47 PM > > To: Oliver Klozoff > > Subject: Re: POE + database access > > > > We would have no idea what your problem is without showing us > > any

Re: findings from Term::ReadKey responses

2004-10-12 Thread Matt S Trout
On Mon, Oct 11, 2004 at 06:47:37PM -0400, Rocco Caputo wrote: > So far I have six (6) failure reports: > > Terminal settings are probably not at fault. The "stty -a" reports > (in and out of canonical mode) are consistent with a BSD system where > the test case works. > > An interesting coincide

Re: trouble updating POE::Component::Client::HTTP

2004-09-02 Thread Matt S Trout
On Thu, Sep 02, 2004 at 09:44:32PM +0200, Bruno Boettcher wrote: > Hello! > > made an update (and had also the very bad idea of making a forced update > :( ) of POE and consorts... > > problem makes POE::Component::Client::HTTP > building etc runs fine, but the tests fail: > > Running make