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
(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
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
that comes up on a CPAN search for POE DBI?
-kevin
--
Mathieu Longtin
1-514-803-8977
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
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
[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
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);
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
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
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 .
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
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
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
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
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
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,
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
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
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
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?
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
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
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
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.
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
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
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
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
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
30 matches
Mail list logo