of uptimes lasting several months.
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
. It deliberately ignores a lot of details,
like what some_calculations() does, or how you tell whether to start or
stop a program.
Good luck.
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
authors with
POE::Session subclasses.
Anyone want to hack POE's guts for fun and fame? :)
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
.
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
the machines of industry copy it there.
Thanks again.
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
On Mon, Sep 01, 2003 at 10:01:26PM -0400, Peter Chen wrote:
On Friday, Aug 29, 2003, at 01:05 US/Eastern, Rocco Caputo wrote:
Sounds good, but also full of problems. It will require a lot of
maintenance to support different monotonic timer functions for each
operating system.
Maybe
On Tue, Sep 02, 2003 at 06:21:44PM -0400, Peter Chen wrote:
On Tuesday, Sep 2, 2003, at 17:28 US/Eastern, Rocco Caputo wrote:
I have heard conflicting stories about whether the time shift is
significant. Jeff Bisbee posted that systems based on UTC don't see
shifts in time() when DST
. What is an 'egg timer'?
It is a short-duration cooking timer. Sometimes they are small
hourglasses. Sometimes they are timers that you twist to start. I use
them as the real-world analog of delay() timers.
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
On Fri, Aug 29, 2003 at 02:29:48PM -0400, Dmitri Tikhonov wrote:
On Fri, Aug 29, 2003 at 01:05:55AM -0400, Rocco Caputo wrote:
On Thu, Aug 28, 2003 at 05:27:22PM -0400, Dmitri Tikhonov wrote:
Now let's consider alarms. Alarms that are called with time = time() + 5 are
not truly alarms
.
$kernel-post(some_session = some_event = \$data);
$kernel-yield(some_event = \$data);
sub some_event_handler {
my $data_ref = $_[ARG0];
...,
}
The yield() method is just a poorly named version of post() that assumes
some_session is the same one it's called from.
--
Rocco Caputo
inc'ing and dec'ing
the refcounts shouldn't matter, so I could also just take those bits
out.
I also agree with this. Callbacks should therefore be pretty darned
simple.
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
in the future, but only if the connection has not been shut
down. This effectively polls for jobs once a minute, as long as the
client is connected. It also guarantees that all enqueued jobs are
handled.
Caveat utilitor, or some junk: I haven't tested any of the above code.
--
Rocco Caputo - [EMAIL
, try a connection registry like the one at
http://poe.perl.org/?POE_Cookbook/Chat_Server
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
. Consider releasing it to the CPAN, too. I think
more people will find it at the CPAN than on the wiki.
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
to perform.
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
swear I saw something exporting that to Perl, but I can't find it
anywhere. Maybe I'm misremembering from C.
Anyway, let me know if that works. I'll add it to POE::Wheel::ReadLine
if it clears up the problem.
Thanks for looking into this.
--
Rocco Caputo - [EMAIL PROTECTED] - http
));
$kernel-select($socket); # stop the socket from POE
$connection-{sockerr} = 1;
$connection-disconnect();
}
Good luck.
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
.
2. Function won't return until POE::Kernel-run() does.
3. POE::Kernel-run() won't return until all sessions have stopped.
4. Sessions active in the parent process will be copied on fork. They
may then be running in the parent and child processes.
--
Rocco Caputo - [EMAIL PROTECTED] - http
:
(Connection has been reset by the Client)
This happens when the Client is killed (disconnected) while it is 'sleep'-ing
state.
The closest I was able to find is ECONNRESET, connection reset by
peer. Consider it also silenced.
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
setting $|=1 in the child program to turn off STDOUT buffering.
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
. It sounds like this may be something common. Do
you have a test case or know of common programs this can be tested
against?
--
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
on poe.perl.org about why I think it failed.
Dieter and Helen (and others) looked it over at YAPC::NA, and they have
some ideas for making it work. I hope to see their response to my
post-mortem report. Maybe Class::Container can help here.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
On Thu, Jul 17, 2003 at 12:38:21AM -0400, Rocco Caputo wrote:
I've attached source for it.
I didn't, but now I am. Honest this time.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
#!/usr/bin/perl
# $Id$
# Build a tree of POE modules.
use warnings;
use strict;
use CPANPLUS
because of DLL conflicts with identically named ones from
ActiveState Perl on the same system.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
, I'll be happy to
make it officially supported in 0.27.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
to be updated to handle that difference.
Which OS are you using? Which version of Perl? Are you using the most
recent version of POE?
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
event handler, but
should i use the ::Run object instead? do i cause some havoc somewhere
by blocking the return of that event processing or doesn't it matter??
You should use POE::Wheel::ReadLine or Term::Visual. Both work without
blocking your program. Term::Visual is especially nice.
-- Rocco
On Fri, Jun 13, 2003 at 06:40:07PM +0200, Bruno Boettcher wrote:
On Fri, Jun 13, 2003 at 11:22:44AM -0400, Rocco Caputo wrote:
If messages are being sent but not received, you can easily find them
by setting POE::Kernel::ASSERT_EVENTS, like so:
sub POE::Kernel::ASSERT_EVENTS () { 1
On Mon, Jun 09, 2003 at 11:42:51PM +1200, Sam Vilain wrote:
On Sun, 08 Jun 2003 10:47, Rocco Caputo wrote:
Nice standard, if seemingly baroque. Is it possible to write a
POE::Filter::FastCGI? If so, you could probably use it just about
everywhere POE::Filter::Line fits. That would let
whether it works. For example, POE::Component::IRC
should magically be working now. Your advanced use will help us deliver
a more robust 0.27 release.
Thanks!
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
there's another option. Write a POE::Loop::TkWin32 or
something that polls for I/O every 1/5 or 1/10 second using non-blocking
select instead of Tk's fileevent callbacks.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
created my own :) I like it (ymmv ;p), so I thought
I'd share.
http://www.pipsqueek.net/images/powered-by/poe.png
see it in use at http://www.pipsqueek.net/
Thanks, Shaun! I've added it (linked to it, actually) from
http://poe.perl.org/?POE_icons
-- Rocco Caputo - [EMAIL PROTECTED
/sslpoe.tar.gz
You didn't find it on the web because I just put it there. Previously
it was hiding on my workstation.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
On Thu, Apr 03, 2003 at 09:35:07PM -0600, Alan Hastings wrote:
Looks like cygwin supports test 22 but not test 21... the fix is probably
more like this:
[...]
Done and committed. Thanks!
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
in need of
structure.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
.
Is it possible for you to post a small yet complete and runnable test
case that exhibits the problem?
Thank you.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
On Fri, Mar 28, 2003 at 09:03:54PM +0100, Sebastian Freund wrote:
Hi!
Rocco Caputo wrote:
I can't see anything obviously wrong in the bits of code you posted.
Is it possible for you to post a small yet complete and runnable test
case that exhibits the problem?
Yes, of course
expanding and pushing against your skull. Depending how quickly you
can pick up new concepts, you may need to wrap your head in something
to provide extra structure, or it may explode.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/ - [Grinning.]
done executing.
Good luck, it can take you a while to find all the leaks, but it can be
done.
The patch in ticket 1783 has been applied to CVS, and it will appear
in version 0.26 (no release date set). Thanks, and apologies for the
delay.
-- Rocco Caputo - [EMAIL PROTECTED] - http
how far you can go,
increase $max_sessions or remove the checks for it entirely.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
missing get(gr|pw)nam functions, or at least throw
unsupported errors wherever they fail.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
On Tue, Feb 25, 2003 at 12:49:54AM +0300, Ilya Martynov wrote:
On Sun, 23 Feb 2003 23:29:49 +0300, Ilya Martynov [EMAIL PROTECTED] said:
On Sun, 23 Feb 2003 12:27:37 -0500, Rocco Caputo [EMAIL PROTECTED] said:
RC On Sun, Feb 23, 2003 at 10:07:30AM +0300, Ilya Martynov wrote:
I'm trying
something?
I think you're right. HTTP::Headers doesn't include the status code.
Client::HTTP needs to do something else, but I'm not sure what.
Suggestions are welcome.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
of people successfully modifying the
component to do it.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
) = @_[ARG1, ARG2];
my $wheel = delete $_[HEAP]-{wheels}{$pid};
if (defined $wheel) {
print Process $pid returned $return_value.\n;
}
}
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
objects and remote method calls. Which is it more like?
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
. It is also on the web, with an improved ActiveState PPD
and tarball.
- http://poe.perl.org/?Where_to_Get_POE
Thanks again for making this release possible.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
for the test case.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
On Tue, Jan 21, 2003 at 02:18:12PM -0600, Werlax wrote:
Rocco Caputo [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
It comes from POE::Component::IRC. From the perldoc:
irc_disconnected
The counterpart to irc_connected, sent
it's a problem in POE, but I won't know more 'til I track it
down.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
leads me to believe that the tests aren't all that
great.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
? If
so, is PPM configured properly for it?
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
.
Please try again? If it continues to not work, please include more
information why. The more you can say about it, the quicker I'll be
able to figure things out.
Thanks!
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
unless Perl itself is having
problems.
If the test emits any warnings or error messages, please include them
in your bug report. I don't have a suitable environment to reproduce
your problem, so the more information you can provide, the faster a
solution might be found.
Thanks!
-- Rocco Caputo
the cleanup timer), aliases, other open files, open
DCC connections, or something else.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
if:
...
[ECONNABORTED] A connection arrived, but it was closed while
waiting on the listen queue.
That is, select() unblocked for accepting, but the client hung up
before accept() was called.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
in passing child-process errors back to the parent for
reporting in the main program.
The type of program you're working on gives you a better environment
for beating on and improving Wheel::Run. I'd appreciate any patches
or advice you can provide on it.
-- Rocco Caputo - [EMAIL PROTECTED] - http
this before?
POE::Session::Pool just seems to be the obvious evolutionary step for me.
POE::Component::JobQueue manages a worker pool, too.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
be
done.
In the meantime, try setting the input, output, and error handles from
the open3() method -blocking(1) after giving them to
Wheel::ReadWrite. That may be all you need to clear things up.
Any suggestions? Are there any other solutions I've overlooked here?
-- Rocco Caputo - [EMAIL
Dec. I'm trying to hunt down an alternate way of
reaching him to let him know.
I don't know of an alternate site for the project. Did he upload it
to CPAN? If so, it will be mirrored on dozens of sites.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
what happens next,
but it's probably fatal all down the tree of processes.
Is it possible that your Solaris shell isn't propagating SIGHUP to
runsomething?
A test case would be helpful here, too.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
also need a tidy replacement
function for yield(), for the people who like its enqueue-only
behavior.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
On Thu, Jan 02, 2003 at 02:42:52PM -0600, Garrett Goebel wrote:
From: Rocco Caputo [mailto:[EMAIL PROTECTED]]
On Thu, Dec 12, 2002 at 05:52:17PM -0600, Garrett Goebel wrote:
Shouldn't -yield not just enqueue an event, but also do a
timeslice before returning? I.e., actually yield
signals is to call POE::Kernel's sig_handled() method.
sub handle_die {
$_[KERNEL]-sig_handled();
}
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
$kernel-state( event = undef ); # undefines event
$kernel-state( event );# undefines event
Also is there a callback to use for trapping undef'd events?
See Chris Fedde's recommendation to use _default here.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
for pointing it out.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
of code
Applied and committed. Thanks!
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
On Mon, Dec 16, 2002 at 04:25:19PM -0600, Garrett Goebel wrote:
Attached is a patch which allows POE::Kernel's call method to better honor
wantarray context.
Applied and committed. Thank you.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
requests
and results between (for example) PHP pages and a POE back end
processor.
Philip Gwyn has been doing similar things for years. He has yet to
release JAAS, but the code is available from http://pied.nu/Perl/JAAS/
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
results back to a central clearinghouse, which only fires
an event when all the pieces have been put together.
What other synchronization patterns are generally useful?
IKC lets you pass events across networks, but I don't think it does
locking like you've implemented.
-- Rocco Caputo - [EMAIL
written into it.
Have you considered releasing it on the CPAN?
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
) = @_;
...
}
Rocco, perhaps if you're agreeable, you could put it (or something similar
to it) out at http://poe.perl.org/poedown and update the info at
http://poe.perl.org/?POE_RFCs/Lexical_state_parameters to point to it?
Consider it done, which it is.
-- Rocco Caputo - [EMAIL PROTECTED
should be hurtling towards your favorite
CPAN mirror. It is also on the web, and so is a (working!) Windows
PPD and tarball.
- http://poe.perl.org/?Where_to_Get_POE
Thanks again to everyone who helped with this release.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
, I forgot to say not to apply that patch... It was just a kludge to
get things working. It'll cause a:
Bareword EWOULDBLOCK not allowed while strict subs in use at ...
error on non-Win32 using use strict...
Argh! Ok... I'll fix that up. Thanks for spotting it anyway. :)
-- Rocco Caputo
hottest code.
Dispatching events through a Session subclass would avoid the extra
cycles.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
on pause_accept() and
resume_accept() methods for SocketFactory. These will correspond to
the pause_ and resume_input() methods on ReadWrite. I'll post again
when they're done.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
mechanism with something different.
A round-robin or priority based scheduler, as opposed to the current
event queue scheduler, would allow sessions to be paused, resumed, and
given dispatch priorities.
I'm sending a copy of this message to [EMAIL PROTECTED] so it's on
file.
-- Rocco Caputo - [EMAIL
, $something_else) },
which doesn't eliminate the closures you want to avoid. What sort of
problems are you running into with closures?
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
, or am I out of luck?
Any help at all would be very much appreciated.
We discussed this in IRC, and I spent a long look at the bowels of LWP
to no avail. Maybe someone else can figure it out, but I'm totally at
a loss.
POE::Component::Client::HTTP works, however.
-- Rocco Caputo - [EMAIL PROTECTED
it back to overlapping for I/O.
I'm probably going to release 0.24 before getting to work on the
Windows issues again, if only because 0.24 is practically ready to go
now.
Cc'd to [EMAIL PROTECTED] for posterity.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
more XS
developers to make this goal.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
know if you need other suggestions.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
. In the meantime, I'm
sending a copy of this message to POE's bug tracker so it's on file.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
of this message to [EMAIL PROTECTED] so
that it's entered into POE's bug tracker.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
On Wed, Oct 30, 2002 at 10:27:32AM -0500, Rocco Caputo wrote:
3. Someone could donate a copy of NT (licensed, please) to the
project. I can put together a Pentium machine from spare parts.
Just a note: Three people have offered to donate a copy of NT for the
project. Thank you!
-- Rocco
. :)
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
. I'll see a change report and can verify or
patch the change afterwards.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
0 10-25-02 9:39p .packlist
1 file(s) 0 bytes
2 dir(s) 48,255.09 MB free
C:\rocco
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
://osdn.dl.sourceforge.net/sourceforge/poe/POE.ppd;
should probably have the word install after ppm, right?
That sounds right. I'll update the page.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
. The older PPM has problems.
If that fails (as it sometimes does), you can install the tarball the
old fashioned way. Get NMAKE.EXE (if you don't already have it) and
follow the instructions in the README (using nmake instead of make).
Also see http://poe.perl.org/?Where_to_get_POE
-- Rocco Caputo
.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
automatically to the CPAN addresses listed with each component.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
that are handled?
I'm about to announce the next phase of signal deprecations, and both
of those things will start emitting mandatory warnings.
I'd hate to make IKC noisy just after you cleared up the last round of
that.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
, and the CVS version will become 0.2303 immediately
after it is released.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
when programs used the
/State$/ Wheel parameters.
This next step will replace those warnings with errors. The /State$/
supporting code will be removed, and any vestigial documentation for
them will be replaced or removed.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
something smarter.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
version of
FollowTail.pm is on CVS (along with a lot of bleeding-edge POE::Kernel
changes). I have attached a copy of it to the ticket at
http://rt.cpan.org/Ticket/Display.html?id=1578
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
. Pardon our dust.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
the perl
function is executed in the child process?
While on the surface it seems like a useful thing, I tend to think
calling srand() is best left to the POE::Wheel::Run user. Not
everyone needs random numbers in their child processes, and for many
it would just be one more bit of overhead.
-- Rocco
, and
unfortunately temporarily slower.
If you've been following efnet #poe, there is some interest in
implementing XS counterparts for parts of POE. My current work should
make things easier for them.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
401 - 500 of 664 matches
Mail list logo