Re: Perl6

2007-11-12 Thread Mathieu Longtin
POE for perl6? I have a great interest in this direction, but i have no experience in it. I think implement all functionality of POE for perl5 with perl6 objects, then use really cool things in perl6, such as continuations. -- Ivan B. Serezhkin -- Mathieu Longtin 1-514-803-8977

Re: PoCo::Server::SimpleHTTP

2007-08-28 Thread Mathieu Longtin
(and only one port). However, since the users of this webserver are either other machines or developers, I may just decide to not worry about this and insist that the clients just need to do things right. -kevin -- Mathieu Longtin 1-514-803-8977

Re: POE::Component::Server::HTTP, Keep alive, and leaking sockets

2007-03-21 Thread Mathieu Longtin
review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. --- -- Mathieu Longtin

Re: POE DBI

2007-02-21 Thread Mathieu Longtin
that comes up on a CPAN search for POE DBI? -kevin -- Mathieu Longtin 1-514-803-8977

Re: POE DBI

2007-02-21 Thread Mathieu Longtin
for those apps. On 2/21/07, Matt Sickler [EMAIL PROTECTED] wrote: yes, DBI and PoCoEasyDBI work just fine on windows On 2/21/07, Bill Nash [EMAIL PROTECTED] wrote: Well... A better question would be: Do Perl and DBI work with windows? - billn On Wed, 21 Feb 2007, Mathieu Longtin wrote

Re: memory (session) leaks in perl

2006-08-22 Thread Mathieu Longtin
2006, Mathieu Longtin wrote: It was my understanding that a session would stay alive as long as it has child sessions. Did that behavior change? No, this is not down to a child session - AFAIK, the behaviour there has not changed. I'm in agreement with Nick here

Re: memory (session) leaks in perl

2006-08-21 Thread Mathieu Longtin
[EMAIL PROTECTED] wrote: There appears to be a lack of opinion on this issue. Would it be therefore reasonable to backout the signal change in POE? Or can anyone suggest a way around the problem? Nick. [EMAIL PROTECTED] wrote: On Wed, 2 Aug 2006, Mathieu Longtin wrote

Re: memory (session) leaks in perl

2006-08-02 Thread Mathieu Longtin
It was my understanding that a session would stay alive as long as it has child sessions. Did that behavior change? I'm in agreement with Nick here. If a session is stritly waiting for a child session to finish, then have it call waitpid. $_[KERNEL]-wait_for_child($session, state, @args);

Re: using poe for web application server

2006-04-29 Thread Mathieu Longtin
If your data is a C structure, and you may want to load it in shared memory, that way every CGI can access it. Or you can use POE to run an HTTP server, which loads the data on startup, and calls the C subroutine to answer each call. Performance wise, the problem with POE is its not

Re: Client::HTTP content filters (was Re: Looking for complex poe examples)

2006-04-21 Thread Mathieu Longtin
Unless you are parsing a really huge piece of XML or HTML, I don't suggest doing it in a non-blocking manner. It is a CPU intensive process, so you won't gain anything from having POE wait for it instead of your own function. Beside, for anything less than 1MB, it will probably be fast enough to

poe::stage and keeping a stage

2006-03-23 Thread Mathieu Longtin
I've started doing this: $self-{req}{echo_request} = POE::Request-new( stage = POE::Stage::Echoer-new(), # == create stage on the fly method= echo, on_echo = got_echo, args = { message = request .

exceptions and POE::Stage

2006-03-13 Thread Mathieu Longtin
While the new exception as signal mechanism is nice, it makes it hard to finalize a request, since all you know is what state the request died in. So, in POE::Stage, would it be possible to override the DIE signal possibility so that the handler (if part of the same stage) has access to the

Re: HTTP server in POE with a twist

2005-12-06 Thread Mathieu Longtin
In the content handler, return RC_WAIT instead of RC_OK, this will delay the sending of the response. When the $response object is filled and ready, call: $response-continue(); This will tell the server to send the response. -Mathieu --- Pedro Melo Cunha [EMAIL PROTECTED] wrote: Hi, I

poe::stage usage

2005-12-06 Thread Mathieu Longtin
Hi, I know Rocco has been pestering us to look at POE::Stage for a while, so I finally did that. I am a bit confused, so I'm going to explain how I understand it works, and you tell me if I got it right. $self-{req} is the request currently being handled. You store all the intervening stages so

poe::stage and die

2005-12-06 Thread Mathieu Longtin
What does POE::Stage do when a method dies? __ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com

Re: using context data in PoCo Client DNS

2005-11-10 Thread Mathieu Longtin
Speaking of which, I have been wondering why POE is implemented with a whole bunch of names instead of references. Any reason for that design decision? Example: $kernel-post('resolver', 'resolve', 'response', $host, 'A', 'IN'); Wouldn't it have been cleaner and less

Re: Perl2Exe and POE on Linux

2005-09-30 Thread Mathieu Longtin
Your problem might be related to the fact that POE uses source filtering. Perlapp doesn't support source code filtering, but the good POE coders wrote quite a detailed section on how to deal with perlapp in POE::Preprocessor's POD. -Mathieu --- Matt S Trout [EMAIL PROTECTED] wrote: On Fri,

Re: PoCo::Client::HTTP Bug

2005-05-04 Thread Mathieu Longtin
All I know is I had this issue with Poco::Server::HTTP. So when I see automated content measurement, I'd rather have them fixed in the library. --- Arthur Bergman [EMAIL PROTECTED] wrote: On 4 May 2005, at 22:04, Matt Cashner wrote: On Wed, 2005-05-04 at 13:40 -0700, Mathieu Longtin

Re: POE::Component::Client::DNS woes

2005-04-28 Thread Mathieu Longtin
Hum, if the first DNS servers works, why should it try the other ones? --- Lari Huttunen [EMAIL PROTECTED] wrote: Dear all, I have been trying to wrap my brain around the POE framework for a couple of days reading through the docs and trying out different things. I managed to modify the

RE: HTTPD meta refresh

2005-04-22 Thread Mathieu Longtin
If you're using POE::Component::Server::HTTP, you have to set the 302 code in the response object, and then return RC_OK from your handler. The component uses the return values RC_OK, RC_DENY (not handled), RC_CONTINUE (show this request to the next matching handler). What the browser gets is the

MessageBus

2005-04-20 Thread Mathieu Longtin
I like the idea, but I'd like to understand a bit more what/how it does its thing. Looking at your example, its unclear to me how consumers and producers are distinguished by the bus. If I call $kernel-post($bus1, some_message, some, args); Does the bus do something like this?

Re: Can't post an event to sender session

2005-04-07 Thread Mathieu Longtin
Sounds like session #1 is garbage collected. But I'm not sure why, since you keep a reference to it in component #3. --- Pronichev Alexander [EMAIL PROTECTED] wrote: Greetings, Note first that I am relatively new to POE and english isn't my native language. The problem is that I've 2

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

2005-03-24 Thread Mathieu Longtin
We're using PoCo::Server::HTTP, and most our request, even if they require making multiple access to multiple sqlite DBs, are answered within .2 seconds. I don't have any hard numbers about concurrency, but it seems to be holding well. --- John Napiorkowski [EMAIL PROTECTED] wrote: Sorry if this

Re: catching exceptions in sessions

2005-02-02 Thread Mathieu Longtin
Wait, the DIE signal is not sent directly to the session that caused it? --- Leif Gustafson [EMAIL PROTECTED] wrote: Sungo wrote: hell, i'm still waiting for the COMMENTS, let alone a pattern to emerge from them. the module seemed to kill the conversation and i've never figured out

catching exceptions in sessions

2005-02-01 Thread Mathieu Longtin
Hi, is there a way in a POE::Session to put an eval { } around all the states, and if an exception occurs, forward it to another state? Thanks -Mathieu __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search.

Re: catching exceptions in sessions

2005-02-01 Thread Mathieu Longtin
Well, POE::Exception fits exactly what I wanted to do. I just wish it was integrated in POE instead of being a separate module. -Mathieu --- Rocco Caputo [EMAIL PROTECTED] wrote: On Tue, Feb 01, 2005 at 03:00:34PM -0600, Tim Klein wrote: Does POE::Exceptions work with POE::NFA, or only

Re: PoCo HTTP Client not releasing sockets

2004-12-13 Thread Mathieu Longtin
Done. I submitted it, its bug #8846. The test only works on Linux, but I've seen the problem occur on windows as well. Anybody knows how to tell how many file descriptors a process has using perl calls? -Mathieu If you turn it into a Test::More style test, I'll add it to Client::HTTP's

fix to PoCo::Server::HTTP

2004-10-06 Thread Mathieu Longtin
I made a few fixes to PoCo::Server::HTTP. Bug 1609 and 7364. Also, a way to add an alias to the session, and set the IP address served. I tried emailing the owner of the package (Richard Clamp), but got no response. How should I go about propagating those fixes to CPAN? -Mathieu

which http server to use

2004-09-13 Thread Mathieu Longtin
Hi, I'm trying to move a bunch of CGI scripts to a POE server, mostly for performance. Looking at CPAN, I see three different POE component HTTP server: POE::Component::Server::HTTP POE::Component::Server::SimpleHTTP POE::Component::Server::HTTPServer All of which have been patched in the last

running CGI scripts from POE

2003-09-23 Thread Mathieu Longtin
Has anyone written a POE HTTP server that allows for CGI scripts to be ran as external process? Thanks -Mathieu __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com