POE crashing DProf?

2007-12-13 Thread Kevin Scaldeferri
Does this happen for other people? [kevin 1189]% perl -d:DProf -e '1' [kevin 1190]% perl -d:DProf -MPOE -e '1' zsh: bus error perl -d:DProf -MPOE -e '1' perl 5.8.8, as installed by default on Mac OS 10.5, PowerPC -kevin

Re: Wide Finder

2007-11-04 Thread Kevin Scaldeferri
On Nov 3, 2007, at 7:39 PM, David Davis wrote: It looks like a competition. It is, sort of. Mostly meant to be educational, though He includes lines of code as a metric, which should tell you something... I think it's totally reasonable. It's interesting to see how concisely differen

Wide Finder

2007-11-03 Thread Kevin Scaldeferri
Okay, I gotta wonder, how come no one's submitted a Wide Finder (http://www.tbray.org/ongoing/When/200x/2007/10/30/WF-Results) implementation in POE (or any Perl for that matter)? I spent a few minutes thinking about this, but the problem I had was that I didn't know of a way to easily para

Re: There needs to be a book!

2007-09-11 Thread Kevin Scaldeferri
On Sep 11, 2007, at 9:47 AM, lanas wrote: But, as Randal says, a POE book would be a work of charity and a gift to the Perl community. It's not a book that's going to make any money. From your description, many, many software books shouldn't bring much money to the authors. Like the 10 b

Re: PoCo::Server::SimpleHTTP

2007-08-28 Thread Kevin Scaldeferri
On Aug 24, 2007, at 7:26 AM, Kidney Bingos wrote: On Wed, Aug 22, 2007 at 04:32:49PM -0700, Kevin Scaldeferri wrote: [I sent this previously to the module maintainer, but got no response. Maybe someone else knows.] Yeah, sorry for not replying, I've been busy recently and let my

PoCo::Server::SimpleHTTP

2007-08-23 Thread Kevin Scaldeferri
[I sent this previously to the module maintainer, but got no response. Maybe someone else knows.] I had a question about SSL support in SimpleHTTP. When it is enabled on my server, if someone goes to an "http://"; URL, they just get a blank page, which isn't all that nice. Is there some

Re: HTTPS server

2007-08-09 Thread Kevin Scaldeferri
On Aug 7, 2007, at 5:07 PM, Joel Bernstein wrote: On Tue, Aug 07, 2007 at 11:10:16AM -0700, Kevin Scaldeferri wrote: I need to add SSL to my web server implemented in POE. At the moment, I'm familiar with 3 HTTP server implementations: PoCo::Server::TCP + POE::Filter::HTTPD PoCo::S

HTTPS server

2007-08-07 Thread Kevin Scaldeferri
I need to add SSL to my web server implemented in POE. At the moment, I'm familiar with 3 HTTP server implementations: PoCo::Server::TCP + POE::Filter::HTTPD PoCo::Server::HTTP PoCo::Server::SimpleHTTP Of these, the last seems to be the only one that has an option for SSL support. Before

Re: How to tell the user "we're working on it"

2007-08-03 Thread Kevin Scaldeferri
On Jul 30, 2007, at 7:45 PM, Tom Lanyon wrote: On 31/07/2007, at 8:44 AM, Kevin Scaldeferri wrote: The system I'm working on has a number of page requests which can take a long time to return the results to the user. Not to surprisingly, the users don't like looking at a blan

How to tell the user "we're working on it"

2007-07-30 Thread Kevin Scaldeferri
The system I'm working on has a number of page requests which can take a long time to return the results to the user. Not to surprisingly, the users don't like looking at a blank page for 30-60 seconds before the reply comes back and finally renders. I'm wondering what techniques other pe

Re: POE suitability

2007-07-11 Thread Kevin Scaldeferri
On Jul 11, 2007, at 2:12 PM, Robert Hicks wrote: In the near future I will be re-writing an app at work. Basically the app processes emails, parses them for data, and inserts that data into Oracle. That is pretty basic but that is the flow of it. The data happens to be nautical computation

Re: Fastest multiple ping?

2007-07-11 Thread Kevin Scaldeferri
On Jul 11, 2007, at 2:10 AM, Stefano Cislaghi wrote: Hello all, i'm looking POE for a multiple host pinger. My porpuse is to ping about 2000 hosts every 60/120 seconds printing out host status and RRT. Anyone is using POE with this big list? I've seen sample script online, changed part of my

Re: Performing actions _after_ PoCo::Server::TCP shuts down

2007-02-24 Thread Kevin Scaldeferri
On Feb 22, 2007, at 10:28 AM, Rocco Caputo wrote: On Feb 21, 2007, at 15:05, Kevin Scaldeferri wrote: I'm trying to figure out how to schedule an action to happen after my PoCo::Server::TCP shuts down. I.e., after all the pending requests have finished processing. I tried doi

Re: Performing actions _after_ PoCo::Server::TCP shuts down

2007-02-21 Thread Kevin Scaldeferri
r session within _stop states On 2/21/07, Kevin Scaldeferri <[EMAIL PROTECTED]> wrote: I'm trying to figure out how to schedule an action to happen after my PoCo::Server::TCP shuts down. I.e., after all the pending requests have finished processing. I tried doing it through _stop lik

Performing actions _after_ PoCo::Server::TCP shuts down

2007-02-21 Thread Kevin Scaldeferri
I'm trying to figure out how to schedule an action to happen after my PoCo::Server::TCP shuts down. I.e., after all the pending requests have finished processing. I tried doing it through _stop like this, but it didn't work: POE::Component::Server::TCP->new ( Alias => 'server',

POE & DBI

2007-02-21 Thread Kevin Scaldeferri
Anyone want to strongly advocate for one of the four or so components that comes up on a CPAN search for "POE DBI"? -kevin

Re: non-interactive child processes?

2007-01-20 Thread Kevin Scaldeferri
to do, but I can't find anything published on CPAN that does it. -kevin On Jan 19, 2007, at 11:02 PM, Matt Sickler wrote: I believe you can use Wheel::Run and theres a CloseEvent or the like On 1/20/07, Kevin Scaldeferri <[EMAIL PROTECTED]> wrote: I figure I can write this myself

non-interactive child processes?

2007-01-19 Thread Kevin Scaldeferri
I figure I can write this myself easily enough, but I'm wondering if there's a module already for this task. I want to run command-line functions which I know to be non-interactive. Of course, POE::Wheel::Run and POE::Component::Child can do this, but their interfaces are overly complicat

Re: graceful shutdown of servers

2007-01-03 Thread Kevin Scaldeferri
e_perl/ 5.8/POE/Loop/PerlSignals.pm at 35 to session 2 (server) but session 2 (server) has neither a handler for it nor one for _default I've tried defining this as both a PackageState and as an InlineState, but neither seems to get things to hook up correctly. -kevin On Jan 2, 2007, at

Re: graceful shutdown of servers

2007-01-03 Thread Kevin Scaldeferri
On Jan 3, 2007, at 2:24 PM, Rocco Caputo wrote: The sig() watchers are throwing "signal_shutdown" events to the wrong session. Your start_server() callback is executed within the context of the main listener session. PackageStates are used to customize each connection's session, however,

Re: graceful shutdown of servers

2007-01-03 Thread Kevin Scaldeferri
e_perl/ 5.8/POE/Loop/PerlSignals.pm at 35 to session 2 (server) but session 2 (server) has neither a handler for it nor one for _default I've tried defining this as both a PackageState and as an InlineState, but neither seems to get things to hook up correctly. -kevin On Jan 2, 2007, at

graceful shutdown of servers

2007-01-02 Thread Kevin Scaldeferri
I've been digging through the website and mailing list archives, and I'm still puzzled about how to achieve a graceful server shutdown. By this, I mean something similar to 'apachectl graceful', where new requests are refused, but any existing requests are fully processed before the server