Re: Trigger an event from outside an event handler

2016-03-29 Thread Rocco Caputo
POE::Kernel->post( $destination, "event", @optional_args ); -- Rocco Caputo > On Mar 29, 2016, at 10:25, pablo baez wrote: > > Hi, > > I'm a POE newbie and looking at the documentation, I don't find a way to > trigger an event of a specific sessi

Re: [COMMERCIAL] POE and Activestate perlapp fail on MacOSX

2016-01-05 Thread Rocco Caputo
E::Kernel->run(), just invoking $poe_main_window->destroy() or Tk::exit() at the end should be enough to see if it's going to help. The "-e syntax OK" suggests that the error is happening as a result of a "perl -c" check within PerlApp. Can you reproduce the error

Re: POE and Activestate perlapp fail on MacOSX

2016-01-04 Thread Rocco Caputo
Hi, Craig. The PerlMonks thread you quoted ends with a solution to the OP's problem. The mactst.pl you quoted doesn't seem to implement that solution, so my first recommendation would be to try that. -- Rocco Caputo > On Jan 4, 2016, at 13:34, Craig Votava > wrote: >

Re: POE::Kernel->stop() will trigger _stop in the next release

2015-11-11 Thread Rocco Caputo
ould start there. -- Rocco Caputo > On Nov 11, 2015, at 19:31, Deven Parekh wrote: > > Hello, > > Thank you for the quick response. > > I will try to generate a test case for the above. > > In the mean time if this helps, I did a hand edit to the stop subroutine in &

Re: POE::Kernel->stop() will trigger _stop in the next release

2015-11-10 Thread Rocco Caputo
I don't expect the change to cause the behavior you've reported. If you can reduce your program to a self-contained test case, something I can run myself using only easily installed, public dependencies, I can investigate what happened. -- Rocco Caputo > On Nov 10, 2015, at

Re: Better ways than call()

2015-11-09 Thread Rocco Caputo
n requester and worker can be encoded and enforced in methods. -- Rocco Caputo > On Nov 9, 2015, at 08:06, john wrote: > > The POE::Kernel documentation indicates this for call(): > > call() returns the value returned by the EVENT_NAME handler. It can do this > because t

Re: POE::Component::Client::Keepalive crashes perl (5.16) on Windows

2015-02-15 Thread Rocco Caputo
ake sure these are up to date: Win32API::File, Win32::Console, Win32::Process, Win32::Job, and Win32. There may be unmet minimum version requirements for your particular setup. If you get Devel::Trace working, sending me the last output before the popup might help. -- Rocco Caputo

POE::Kernel->stop() will trigger _stop in the next release

2014-10-30 Thread Rocco Caputo
k in advance of a release. I've already run it past irc.perl.org #poe, and nobody objected. -- Rocco Caputo

Re: Asunto: Re: Slow fork bomb message in latest version of POE

2014-03-24 Thread Rocco Caputo
resolve your sig_child() usage issue, then your program should not be interrupted at inopportune times, and it should reap the nginx process before it exits. This should resolve all outstanding issues, as I currently understand them. -- Rocco Caputo On Mar 24, 2014, at 12:15, albertocurro wr

Re: Slow fork bomb message in latest version of POE

2014-03-24 Thread Rocco Caputo
You are not using sig_child() as intended. When used as intended, sig_child() will prevent shutdown until the child process has exited and has been reaped. The timing issues you're worried about should not exist. -- Rocco Caputo On Mar 24, 2014, at 11:44, albertocurro wrote: >

Re: Slow fork bomb message in latest version of POE

2014-03-24 Thread Rocco Caputo
ses may still be open until an object is destroyed at global destruction time. -- Rocco Caputo On Mar 24, 2014, at 05:46, albertocurro wrote: > Guys, > > We have a product developed using POE as a base framework, with some other > tool libraries as log4perl; basically is a forward pro

Re: POCO IRC Proxy plugin

2014-02-22 Thread Rocco Caputo
p a lot of bots, you can put them all behind one IRC connection. This may keep you from being banned by servers that have low connection limits. If a channel lets you only have one bot, you can cheat. :) Other things, only limited by the intersection of the implemented features and your imaginat

Re: Saving application state

2014-02-13 Thread Rocco Caputo
Hi, Celso. This isn't a job for POE. Use File::AtomicWrite, or something like it, to safely write the time stamp as frequently as necessary. It's a trivial amount of data, so you probably don't need it written asynchronously. Reload the time stamp when the program restarts. -

Re: [SOLVEDish] Problem with MPD client but probably POE user error

2014-02-06 Thread Rocco Caputo
't notice this problem because I expected POE::Component::MPD to set its own alias in its own _start routine. _start is called before POE::Session->create() returns. The predictable timing can be used to avoid problems like this. -- Rocco Caputo

Re: Problem with MPD client but probably POE user error

2014-02-04 Thread Rocco Caputo
will warn you about something relevant. -- Rocco Caputo On Feb 4, 2014, at 07:56, John wrote: > > none of the events I send get > to the daemon (also running on localhost with default port). > maybe this is not a problem > with MPD.pm but my usage of POE. > > I can use th

Subtle change to SIGCHLD polling

2013-10-06 Thread Rocco Caputo
Perl like ActiveState or Strawberry. Please review the change in the repository and give it a spin before it ends up on CPAN. The build you save may be your own. https://github.com/rcaputo/poe/commit/d3cb2fbfb53799ab22754b900fc47af703758910 commit d3cb2fbfb53799ab22754b900fc47af703758910 A

Re: POE server and perl client on diferent OS

2013-09-20 Thread Rocco Caputo
On Sep 19, 2013, at 20:29, Zhu, Julie wrote: > > May I use POE server on linux machine and using perl 5.6 write client using= > socket module on windows client? Can they communicate? Yes. -- Rocco Caputo

Attn: Backwards-incompatible change to CATCH_EXCEPTIONS

2013-09-05 Thread Rocco Caputo
6b58760ef3 commit 52487325a316b2bcc945f0a1f344556b58760ef3 Author: Rocco Caputo Date: Thu Sep 5 18:52:13 2013 -0400 !!! CATCH_EXCEPTIONS revamp. May be slightly backwards incompatible. I expect more good to come from it than harm. POE should hide error messages less often. Its usa

Re: Localizing %SIG in Safe.pm 2.{35,36,37} crashes POE::Wheel::Run ...

2013-07-16 Thread Rocco Caputo
Thank you for the alert. Is there any reasonable way to work around this? -- Rocco Caputo On Jul 16, 2013, at 12:00, Markus Jansen wrote: > Hi, > > FYI ... hope none of you wastes time with this really nasty trap ... > > Best regards, >Markus > > -Orig

Re: Combining services.

2013-02-01 Thread Rocco Caputo
Don't use an asynchronous client if you don't need one. The cookbook includes examples using POE::Filter::Reference by itself. -- Rocco Caputo On Jan 31, 2013, at 09:41, Antti Linno wrote: > Hm, as my needs for application server are very simple, I feel that POE TCP > cli

Re: Combining services.

2013-01-30 Thread Rocco Caputo
ybe not to merge TCP and UDP), or code examples > are welcome :) I've attached a working version of your sample code. It starts two TCP servers and a UDP service, and lets them all run at once in the same process. -- Rocco Caputo #!/usr/bin/env perl use warnings; use strict; use

Re: POE, log4perl and sqlite

2012-10-19 Thread Rocco Caputo
exes so the queries complete in time. -- Rocco Caputo 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 > application logic http://

Re: POE, log4perl and sqlite

2012-10-18 Thread Rocco Caputo
alls the Logger's static get_logger($category) method to obtain a reference to the one and only possible logger object of a certain category. That's called a singleton if you're a Gamma fan." That quote is from http://search.cpan.org/~mschilli/Log-Log4perl-1.38/lib/Log/Log4perl.pm#Initialize_via_a_configuration_file -- Rocco Caputo

Re: SocketFactory Server communication between sessions

2012-10-17 Thread Rocco Caputo
the object. I think this covers all your other questions. Please let us know if it doesn't. Thanks! -- Rocco Caputo

Re: patch for SIG{__DIE__} behaviour

2012-09-27 Thread Rocco Caputo
I redirected it to POE's request queue at bug-...@rt.cpan.org. It's tracked at https://rt.cpan.org/Public/Bug/Display.html?id=79886 now. -- Rocco Caputo On Sep 26, 2012, at 10:46, Philip Gwyn wrote: > Hello, > > This is a patch that fixes $SIG{__DIE__} handling for

Re: POE process getting too busy

2012-08-25 Thread Rocco Caputo
rint&impressions=&viewlocale=&id=TECH163245 http://wesunsolve.net/bugid/id/6404383 -- Rocco Caputo On Aug 21, 2012, at 06:09, Markus Jansen wrote: > Hi, > > thanks a lot for the immediate answer, I also changed the code immediately, > and started another long-term test run.

Re: alarm function under while loop

2012-08-25 Thread Rocco Caputo
use POE::Kernel->run_while() to run POE's dispatcher while a variable is true. Set the variable false from the callback you are waiting for. -- Rocco Caputo On Aug 22, 2012, at 05:54, Gokul Prasad wrote: > Hi, > > Am setting "alarm" in calling a function to chec

Re: Contemplating POE for a multi-platform project rewrite

2012-08-14 Thread Rocco Caputo
wers. It's also a good way to work around time zone differences. irc.perl.org #poe is good for shorter, less formal, more real-time interaction. -- Rocco Caputo

Re: wheel_run.pm test errors (Was: POE Upgrade error)

2012-07-21 Thread Rocco Caputo
On Jul 13, 2012, at 11:26, Philip Gwyn wrote: > > On 10-Jul-2012 Rocco Caputo wrote: >> Good morning. >> >> I could use some help with this problem. > > After a look at wheel_run.pm, seems to me this is a buffering issue. The > child does print; <>;

Re: Do events due to yield have higher precedence than those due to delay for kernel dispatch?

2012-07-11 Thread Rocco Caputo
econd processing time for each event handler means that only 3-5 of them can be dispatched every second. You will need to make the time-consuming tasks asynchronous or distribute the work across more cores. -- Rocco Caputo On Jul 12, 2012, at 01:13, Deven Parekh wrote: > Hello POE t

Re: POE Upgrade error

2012-07-10 Thread Rocco Caputo
mmary of my perl5 (revision 5 version 12 subversion 4) configuration Summary of my perl5 (revision 5 version 14 subversion 2) configuration Summary of my perl5 (revision 5 version 10 subversion 1) configuration Summary of my perl5 (revision 5 version 14 subversion 1) configuration Thanks! -- Rocco

Deprecation notice: POE::Pipe utilities becoming IO::Pipely

2012-06-28 Thread Rocco Caputo
's far enough in the future so everyone can avoid problems. -- Rocco Caputo

Re: POE Upgrade error

2012-06-25 Thread Rocco Caputo
H key if that's feasible. -- Rocco Caputo On Jun 25, 2012, at 12:02, Patrick Amigo wrote: > Hello, > > > > We are trying to upgrade POE version 1.289 to current version POE 1.354. > However, we get the following error on every attempt. > > &

Re: Q: add and remove wheels dynamically

2012-06-13 Thread Rocco Caputo
you're doing... something... wrong." -- Rocco Caputo On Jun 12, 2012, at 16:10, Alex wrote: > Hi! > > I have written a small Tk GUI that follows some log files. I would like to > add the possibility to add and remove files on-the-fly. > To do this, I added a menu where

Re: POE-Component-Client-Keepalive under Solaris

2011-12-16 Thread Rocco Caputo
Let's open tickets for the problem. E-mail `prove -v` output to bug-poe-component-client-keepal...@rt.cpan.org? -- Rocco Caputo On Dec 16, 2011, at 04:42, Michael Lackhoff wrote: > As the test results on CPAN indicate I am not the only one having > problems with this module un

POE 1.350 released

2011-12-15 Thread Rocco Caputo
changes may be user-facing to people who aren't using sig_child(). I've advanced the revision more than normal for that reason. -- Rocco Caputo

Re: I want to build a tunnel system in POE

2011-12-13 Thread Rocco Caputo
POE doesn't do anything special regarding sockets. Well, okay, it binmode()s them and makes them non-blocking. Otherwise, they're just plain sockets. So any SOCK_RAW chicanery you might need to spoof source addresses will be standard. -- Rocco Caputo On Dec 12, 2011, at 17:09,

Re: Warning: Is anyone still using $kernel->sig(CHLD => $event)?

2011-12-12 Thread Rocco Caputo
Please review the changes I uploaded to github. https://github.com/rcaputo/poe and https://github.com/rcaputo/poe-test-loops ... thanks! -- Rocco Caputo On Dec 11, 2011, at 15:05, Rocco Caputo wrote: > If you're using sig(CHLD => $event) to catch SIGCHLD, you should totally

Warning: Is anyone still using $kernel->sig(CHLD => $event)?

2011-12-11 Thread Rocco Caputo
nt to reap, and ones encapsulated by a library that may never shut them down. Which is why I added sig_child() five years ago. commit e8a11d981f111afe92e56d6ade8ba08a3d5a077b Author: Rocco Caputo Date: Sat Sep 16 05:33:53 2006 -0400 Added sig_chlid(), test case, and documentation. Resolve

Re: Generating constant RPS load for Data cloud

2011-11-02 Thread Rocco Caputo
it's quite likely that many of the requests are timing out. Increase max_per_host to 1000. Consider a more sophisticated throttling algorithm that fire off 800+ requests all at once. -- Rocco Caputo On Oct 4, 2011, at 01:47, Anil Thyagarajan wrote: > Hi, > > We have a data

Re: Cannot receive data with POE tcp connection

2011-10-03 Thread Rocco Caputo
Hi, Andhi. Many Internet protocols are line-based and use the RFC "network newline" (CR+LF). POE::Component::Server::TCP defaults to this, but you can change it. See: http://search.cpan.org/~rcaputo/POE-1.312/lib/POE/Component/Server/TCP.pm#ClientFilter -- Rocco Caputo On O

Re: Force all PoCo::Server::TCP clients to disconnect

2011-09-07 Thread Rocco Caputo
You need to keep track of all the TCP connections. http://poe.perl.org/?POE_Cookbook/Chat_Server shows how to do it. Instead of broadcasting messages to all attached clients, though, you would be broadcasting a "shutdown" event. -- Rocco Caputo On Sep 5, 2011, at 13:47, Gun

Re: POE::Component::Server::TCP - accessing listener heap entries

2011-08-29 Thread Rocco Caputo
ful to avoid circular references when you work like this, and you should be fine. -- Rocco Caputo On Aug 29, 2011, at 21:20, Krishna K wrote: > Hi, > I am trying to debug an issue with POE::Component::Server::TCP where the > client sessions do not get closed correctly when using > P

Re: Modules depending on different event loops in the same POE app?

2011-08-21 Thread Rocco Caputo
The problem is that Tk's event loop and Event's event loop are mutually exclusive. POE can use Event, via POE::Loop::Event, just as easily as it can use Tk's via POE::Loop::Tk. POE::Component::Generic "hangs" in a separate process, so the main POE::Loop::Tk will conti

Re: Client crash making server crash

2011-08-19 Thread Rocco Caputo
#x27;ll try to reproduce the conditions in your stack trace after work. -- Rocco Caputo On Aug 19, 2011, at 15:47, Eric Martel wrote: > > Still no luck with a snapshot taken from > "http://poe.git.sourceforge.net/git/gitweb.cgi?p=poe/poe;a=snapshot;h=5b9429832974363f

Re: Client crash making server crash

2011-08-19 Thread Rocco Caputo
confess() this week, but it's not released yet. I'll expedite the 1.313 release if it fixes your problem. -- Rocco Caputo On Aug 19, 2011, at 14:43, Eric Martel wrote: > Hi folks, > > I'm quite new to POE. I wrote a server using POE::Wheel::SocketFactory and >

Re: killing a session

2011-08-19 Thread Rocco Caputo
- Ticker session is being destroyed. 1) macbookpoe:~/projects/misc/support% -- Rocco Caputo On Aug 19, 2011, at 04:02, Rizwan Hisham wrote: > Dear List, > How do I kill a running session from inside another session. There is no > parent child relation between the two session, the

Re: PoCo::Client::HTTP 0.943 + run_one_timeslice = block

2011-07-30 Thread Rocco Caputo
Please open a ticket against POE::Component::Client::HTTP if shutdown in your DESTROY method doesn't resolve it. -- Rocco Caputo On Jun 22, 2011, at 23:19, Rocco Caputo wrote: > It may have something to do with the new POE::Component::Resolver dependency > via POE::Compon

Re: Problem to execute "sidecar" Perl scripts when compiling POE::Component::Resolver 0.912 with PAR

2011-07-30 Thread Rocco Caputo
Thanks for the clarification, Markus. I've applied a modified version of your patch as change 82af41c8ab2dd061acd7deb9979fa6cb5c4725ae. You can review it online at https://github.com/rcaputo/poe-component-resolver -- Rocco Caputo On Jul 29, 2011, at 05:01, Markus Jansen wrote: >

Re: Problem to execute "sidecar" Perl scripts when compiling POE::Component::Resolver 0.912 with PAR

2011-07-28 Thread Rocco Caputo
source. Do you ever supply a sidecar that isn't POE::Component::Resolver::Sidecar? A parameter would be excellent for a general-purpose sidecar-based module, but I think it's not so useful here. commit 638cd9e616a5b4ffbf413672784f41896de97430 Author: Rocco Caputo Date: Fri Jul 29 00:4

Re: PoCo::Client::HTTP 0.943 + run_one_timeslice = block

2011-06-22 Thread Rocco Caputo
Without an explicit shutdown, I think KeepAlive is keeping sockets alive. -- Rocco Caputo On Jun 18, 2011, at 14:17, p...@perlmeister.com wrote: > Something must have changed in PoCo::Client::HTTP 0.943 leaving the > kernel blocking even if all requests have been processed. > >

Re: Creating and shutting down POE::Sessions

2011-05-21 Thread Rocco Caputo
On May 19, 2011, at 03:18, Gabor Szabo wrote: > On Thu, May 19, 2011 at 5:28 AM, Rocco Caputo wrote: >> On May 18, 2011, at 09:30, Gabor Szabo wrote: >> >>> I have tried to setup a small application that would listen on a TCP >>> port and get commands '

Re: Creating and shutting down POE::Sessions

2011-05-18 Thread Rocco Caputo
client_count { my ($kernel, $heap) = @_[KERNEL, HEAP]; # Deleted when the counter stops. return unless exists $heap->{counter}; # Set when this connection is shutting down. return if $heap->{shutdown}; print "Counter: ", ++$heap->{counter}, "\n"; $kernel->delay(count => 1); } -- Rocco Caputo

Re: Problem to execute "sidecar" Perl scripts when compiling POE::Component::Resolver with PAR

2011-05-18 Thread Rocco Caputo
mponent::Client::Keepalive->new( resolver => POE::Component::Resolver->new( max_resolvers => 2, ) ) ); -- Rocco Caputo

Re: PoCo::JobQueue no longer on CPAN?

2011-05-15 Thread Rocco Caputo
-Component-JobQueue' cannot be found, did you mean one > of these"... > > I know how to get it from backpan, so no worries about that. Hi, Rhesa. Thank you for bringing this to my attention. PoCo::JobQueue wasn't deliberately pulled from CPAN. I've just upl

Re: Robust IKC

2011-05-13 Thread Rocco Caputo
Normally IKC's author is watching the list, but your mail might not have reached him or he may be busy. Have you tried contacting him directly? -- Rocco Caputo On May 5, 2011, at 20:03, John R. wrote: > I would like to have my POE client recoever from a variety of IKC > failur

POE 1.310 Released

2011-04-19 Thread Rocco Caputo
s, and warnings have been quieted. Child process reaping has become more efficient for Perl versions that are known to have safe SIGCHLD. POE::Resource::Statistics has been removed. Devel::NYTProf is the recommended alternative to in-POE profiling. -- Rocco Caputo

Re: POE::Session major bug.

2011-04-15 Thread Rocco Caputo
Thanks, flw and Nick. https://github.com/rcaputo/poe/commit/d65590f5c0c065d49a342e94e48b8167f4f5c633 should resolve it. That change will defer GC until the next sweep. There could be a potential problem if the sweep doesn't happen, but I don't know how that might occur. -- Ro

Re: SocketFactory and Windows connections errors

2011-04-15 Thread Rocco Caputo
there is no server > listening on port 1234): [removed] Hi, Ciprian. This should fix it: https://github.com/rcaputo/poe/commit/8265022983656ed2b31bf010c4726462efc9566e It will be in a new release soon. -- Rocco Caputo

Re: Announce: Net:GPSD3::POE

2011-04-05 Thread Rocco Caputo
;call($self->{sid}, "shutdown"); $self->{sid} = undef; } # POE callback. Deletes the wheel from within the context of the # session that owns it. sub _handle_poe_shutdown { my $self = $_[OBJECT]; delete $self->{io}; } # POE callback. Handle input. sub _handle_input_event { my ($self, $line) = @_[OBJECT, ARG0]; my @handler = $self->handlers(); push @handler, \&Net::GPSD3::default_handler unless @handler; my $object = $self->constructor($self->decode($line), string => $line); foreach my $handler (@handler) { $handler->($object); } $self->cache($object); } -- Rocco Caputo

Warning: POE's internal statistics traces going away

2011-02-08 Thread Rocco Caputo
ways be on BackPAN. Alternatively you can fork POE and maintain legacy features at your own leisure/peril. Apologies for the inconvenience, in advance. -- Rocco Caputo - rcap...@pobox.com

Warning: Major internal data restructure

2011-02-07 Thread Rocco Caputo
ork without a time consuming CLONE phase. However it breaks many assumptions about POE's internal workings. Most people oughtn't care. If you do care, let's talk. -- Rocco Caputo - rcap...@pobox.com

IPv6 support improving, yet paradoxically breaking

2011-01-27 Thread Rocco Caputo
means existing IPv6 houses will switch down to IPv4 if they upgrade POE without also installing Socket::GetAddrInfo. [Also announced at @rcaputo on Twitter, albeit with much less detail.] -- Rocco Caputo - rcap...@pobox.com

Re: Passing Sessions with Curses::UI::POE

2011-01-20 Thread Rocco Caputo
ocs for side effects, including numbness, shortness of breath, upset stomach, and the ability to smell concepts that can't be expressed in a single English word. -- Rocco Caputo - rcap...@pobox.com On Jan 18, 2011, at 13:05, p...@perlmeister.com wrote: > Using Curses::UI::POE and the k

I will advertise your Reflex project.

2011-01-08 Thread Rocco Caputo
Please let me know if you're using Reflex and would like me to plug your project at the Orlando Perl Workshop. http://www.perloasis.info/opw2011/talk/3189 I may also be giving an extended version of this talk at YAPC::NA 2011. -- Rocco Caputo - rcap...@pobox.com

Re: POE::Component::SNMP Hangs When Multiple Aliases Added

2010-10-30 Thread Rocco Caputo
$alias => 'finish' ); } $heap->{pending} would be decremented to -1, and 'finish' would never occur? If @reachable_hosts > 1, then "finish" occurs before the last host reports? That sounds as if that could lose a host. -- Rocco Caputo - rcap...@pobox.co

Anyone calling _dispatch_event() directly?

2010-10-07 Thread Rocco Caputo
7;t affect anyone. In the real world it probably breaks someone's code. Whose is it, and what can we do about that? -- Rocco Caputo - rcap...@pobox.com

Re: unfortunate behavior after upgrading POE

2010-09-01 Thread Rocco Caputo
ts/poe/poe% ack JSON 1) macbookpoe:~/projects/poe/poe% ack -ai JSON 1) macbookpoe:~/projects/poe/poe% -- Rocco Caputo - rcap...@pobox.com On Sep 1, 2010, at 13:28, Ellery, Michael wrote: Hello, We use POE to manage a group of child processes doing processing in our system, using the POE::Wheel::

Re: News: Git, Moose and Snerp Vortex

2010-08-29 Thread Rocco Caputo
On Aug 29, 2010, at 02:23, Rocco Caputo wrote: If you hate Subversion, the best way to stall the migration is to report migration problems. Or, you know, if you hate Git. D'oh. Thanks, Tony! -- Rocco Caputo - rcap...@pobox.com

News: Git, Moose and Snerp Vortex

2010-08-28 Thread Rocco Caputo
s nearly 2900 revisions in about five minutes, so it's pretty cheap for me to scrap converted repositories and try again. And again. You might find it helpful, or it could explode and take off your hand. Either way, it's at http://github.com/rcaputo/snerp-vortex and patches are welcome. -- Rocco Caputo - rcap...@pobox.com

Re: POE sigdies due to die which should never be reached in POE::Queue::Array

2010-06-24 Thread Rocco Caputo
Probably just that, although events reference sessions, which pull in HEAPs, and who knows what else. So please send the results to me directly. The list subscribers don't all need to see that. Thanks again! -- Rocco Caputo - rcap...@pobox.com On Jun 24, 2010, at 09:20, Jean St

Re: POE sigdies due to die which should never be reached in POE::Queue::Array

2010-06-23 Thread Rocco Caputo
Can you dump the queue at that point, and send me the results off-list? -- Rocco Caputo - rcap...@pobox.com On Jun 21, 2010, at 04:33, Jean Stebens wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm using version 1.2680 of POE. The following exception bumped me the

Re: Performance tunning for POE/Component::Client::HTTP

2010-06-11 Thread Rocco Caputo
could dig into the problem a little deeper. I have some digging of my own to do, but I'm currently swamped. -- Rocco Caputo - rcap...@pobox.com On Jun 9, 2010, at 11:52, Ryan Chan wrote: Hello, I have a simple code at: http://pastebin.com/KeU4XANP This script down a small CSS file from

Re: How to deal with event timeout?

2010-03-23 Thread Rocco Caputo
rnel->delay(connect_timeout => undef); # clear it } You will need to register a connect_timeout handler in POE::Session- >create() to catch the timeout. -- Rocco Caputo - rcap...@pobox.com On Mar 22, 2010, at 10:00, Ryan Chan wrote: For example, I am using POE::Component::Client::NNTP ht

About Proc::Daemon & POE

2010-03-15 Thread Rocco Caputo
OE::Kernel->has_forked() was added a little while ago to reset process-scoped data within POE after calling fork(). Such data includes outstanding child PIDs and the signal pipes. Please let me know if this doesn't fix things. Thanks! -- Rocco Caputo - rcap...@pobox.com

Re: POE "Pipeline"

2010-03-12 Thread Rocco Caputo
pipelines/ http://search.yahoo.com/search?p=cms+pipelines -- Rocco Caputo - rcap...@pobox.com On Mar 12, 2010, at 14:19, Zero Hero wrote: I was wondering if anyone had created the "analog of the Unix Pipeline" for POE. This would let someone compose stages whose inputs were essentia

Re: POE::Loop::Glib/Gtk2 trips over Wheel output

2010-03-09 Thread Rocco Caputo
On Mar 9, 2010, at 11:59, Mike Schilli wrote: On Tue, 9 Mar 2010, Rocco Caputo wrote: I believe you may have encountered a known bug with a simple solution. https://rt.cpan.org/Public/Bug/Display.html?id=53302 Now if only we could somehow get that patch released Is the solution to be

Re: POE::Loop::Glib/Gtk2 trips over Wheel output

2010-03-09 Thread Rocco Caputo
I believe you may have encountered a known bug with a simple solution. https://rt.cpan.org/Public/Bug/Display.html?id=53302 Now if only we could somehow get that patch released -- Rocco Caputo - rcap...@pobox.com On Mar 9, 2010, at 03:10, p...@perlmeister.com wrote: I'm tryi

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

2010-03-03 Thread Rocco Caputo
lting HTML profile report on the web somewhere. Send us a link, and I'll be happy to look at it. Better yet, send me a link to a tarballed report. I'm looking for real-world profile reports for clues about optimizing POE. Thanks! -- Rocco Caputo - rcap...@pobox.com On Mar 3, 20

Re: Access IP address in POE::Component::Client::HTTP

2010-01-31 Thread Rocco Caputo
contain the proxy's address.port if the client is connecting to a proxy. -- Rocco Caputo - rcap...@pobox.com On Jan 27, 2010, at 11:02, Doreen Grey wrote: Hello all, I've built a web client application with POE::Component::Client::HTTP. I followed the examples in the cookbook (htt

Re: Help with POE, Tk, and Multiple Processes

2009-12-28 Thread Rocco Caputo
to delegate all this to an ssh agent. -- Rocco Caputo - rcap...@pobox.com On Dec 28, 2009, at 16:23, Votava, Craig M (Craig) wrote: Folks- You can check out the following link to see how I've been educated on this issue so far, but I'm having trouble engineering a solution. I

Re: Can't store GLOB items at blib/lib/Storable.pm at /usr/local/lib/perl5/site_perl/5.10.0/POE/Filter/Reference.pm line 208

2009-12-22 Thread Rocco Caputo
lit into ../../ lib/auto/Storable/_freeze.al) line 339, at -e line 1 If you choose to use something like YAML, POE::Filter::Reference's documentation will explain how to replace Storable. -- Rocco Caputo - rcap...@pobox.com On Dec 22, 2009, at 16:28, Josh803316 wrote: My application

Re: Execute Jobs parallel using JobQueue

2009-12-01 Thread Rocco Caputo
The other general advice is to use fork(), with or without POE, when you need true parallelism. -- Rocco Caputo - rcap...@pobox.com On Dec 1, 2009, at 08:50, Mark Morgan wrote: Good day, Ryan, The problem with using 'sleep' in POE code is that POE isn't true pre-emptive mul

Re: Poe Design Question

2009-11-25 Thread Rocco Caputo
What's your bottleneck? If it's just speaking with modems, POE can do that asynchronously. You may be able to simplify the design by pulling the jobs back into the main process. -- Rocco Caputo - rcap...@pobox.com On Nov 24, 2009, at 15:00, Simon Taylor wrote: (updated) I ha

Re: Strategy in designing a scaleable robot with POE::Component::Client::HTTP?

2009-11-20 Thread Rocco Caputo
nsider how performance plummets when a machine overcommits its memory and begins swapping. Don't let that happen to you. Use fork() with POE to take advantage of both cores. Are you looking for a design consultant? -- Rocco Caputo - rcap...@pobox.com On Nov 20, 2009, at 23:15, Ryan Chan

Re: unexpected _child(lose) for a detached session from _start

2009-11-19 Thread Rocco Caputo
racker. Thank you again for all your help. -- Rocco Caputo - rcap...@pobox.com On Nov 19, 2009, at 14:00, Olivier Mengué wrote: Hi POE fellows, I'm in the process of rewriting the backend of my POE::Component::Schedule to make the backend session independent of others session in the s

Re: help with POE::Component::Client::HTTP

2009-11-19 Thread Rocco Caputo
Please look for "shutdown" in the POE::Component::Client::HTTP documentation. -- Rocco Caputo - rcap...@pobox.com On Nov 19, 2009, at 22:03, Aaron Goodmiller wrote: Hello all, I am using the POE::Component::Client::HTTP part of POE to call 4 URLs simultaneously. This works rea

Re: Not seeing anything back out of STDOUT

2009-11-10 Thread Rocco Caputo
Yes, plain text looks like a very large data structure to POE::Filter::Reference. It is busy buffering data until it has enough to thaw(). That behavior appears to the application as if the filter has stalled. -- Rocco Caputo - rcap...@pobox.com On Nov 10, 2009, at 04:29, Simon Taylor

Re: Not seeing anything back out of STDOUT

2009-11-09 Thread Rocco Caputo
made by creating the socket in the parent process, then sharing it between the parent and child after the fork() duplicates it. No client/server shenanigans are performed to set up the connection. It could be something else, but I can't tell without seeing more code. :) -- Ro

Re: Git

2009-10-25 Thread Rocco Caputo
ne git-svn-abandon-fix-refs does wonders to recover branches and tags, but it relies on git-svn clone creating sane branches and remotes. -- Rocco Caputo - rcap...@pobox.com On Oct 25, 2009, at 09:12, Guy Hulbert wrote: I discovered POE today due to a WNPP email to the debian-perl lis

Re: TCP keepalive?

2009-10-21 Thread Rocco Caputo
hould be able to do anything you need there, no matter what that entails. -- Rocco Caputo - rcap...@pobox.com On Oct 20, 2009, at 13:48, Adams Sean wrote: never mind, this was easy to enable globally by modifying SocketFactory.pm @ line 706: setsockopt($socket_handle, SOL_SOCKET, SO_K

POE 1.280 is released to PAUSE

2009-10-13 Thread Rocco Caputo
e eliminated by this release. Lots of MSWin32 fixes! Not nearly enough, but it's improved by a leap and a bound. ... and a bunch of really minor things in the CHANGES file. Thanks everyone! What's next? -- Rocco Caputo - rcap...@pobox.com

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

2009-10-12 Thread Rocco Caputo
ll. For the (Program => \&foo) case, I don't know. Can Perl on Windows handle that well at all? -- Rocco Caputo - rcap...@pobox.com On Oct 12, 2009, at 10:54, Andreas Altergott wrote: Hi, Andrew Feren wrote: Something like the following will give you better results.

Upcoming POE Changes

2009-10-09 Thread Rocco Caputo
tioned has been delayed. Adam Kennedy's Test::POE::Stopping has been affected. I hope his is a special case. More to Come There will be more improvements in the future, but that's all for now. Stay tuned, and please report any problems you encounter early and often. Thanks! -- Rocco Caputo - rcap...@pobox.com

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

2009-10-02 Thread Rocco Caputo
Thanks for pointing that out. I had forgotten the backstory on it. It strongly implies that the I/O redirection must be done BEFORE the fork() call on Windows, as it seems that fork() communicates stdio to exec() inside Perl. Time for test cases... -- Rocco Caputo - rcap...@pobox.com

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

2009-10-01 Thread Rocco Caputo
patch does any harm. He's bypassing Win32::Console::_SetStdHandle() calls that set STDIN, STDOUT and STDERR to the pipes that communicate with the parent process. It seems like reasonable code, but I don't know any better. Any help would be appreciated. Thank you. -- Rocc

POE 1.260 may be imminent, but it's no big deal.

2009-08-27 Thread Rocco Caputo
modules will have versions numerically greater than their highest released versions. Indexers will be happy again. -- Rocco Caputo - rcap...@pobox.com

POE 1.020 released!

2009-08-27 Thread Rocco Caputo
abled. As always, please submit problem reports and other feedback through POE's bug queue at rt.cpan.org. -- Rocco Caputo - rcap...@pobox.com

Re: how to create parallel sessions?

2009-08-25 Thread Rocco Caputo
Perl's for() is not a parallel dispatcher, sorry. POE::Session- >create() should take relatively little time, after which your program should call POE::Kernel->run(). This run() method is a cooperative timeslice dispatcher, which is often parallel enough. -- Rocco Ca

POE::Loop::{Event,Gtk,Tk} Now Separate Distros

2009-08-25 Thread Rocco Caputo
r the next POE release. This is your last opportunity to fix dependencies in advance. I'll probably warn y'all again once POE's released, but by then it'll be, as they say, TOO LAATE!! -- Rocco Caputo - rcap...@pobox.com

  1   2   3   4   5   6   7   8   9   10   >