From: Martijn van Beers
Hi,
I've been working on a filter to do SSL, inspired by David Davis' try in
Sprocket and IO::Socket::SSL. It seems to be working pretty well (see
attached code; mostly needs more testing and error handling), but I
can't release it because it needs more API than filters currently
provide (see also the 'POE::Filter error reporting' thread)
My current thoughts are to forget about trying to extend POE::Filter but
start over in a new namespace (possibly Data::Transform?) That way
there's no need to worry about mixing up filters with the old and new
apis. And not being in the POE namespace might help convince people that
Filters really are useful outside of POE.
Of course, there is still need for handling this in Wheel::ReadWrite
(and other wheels) too. Not sure whether to subclass those or to add
some extra if blocks.
I'm mostly writing this email to find out what people think of the idea
of doing 'new filters' in a new namespace (and if so, which namespace).
But if you think I'm on crack for how I'm doing things in Filter::SSL,
please let me know that too :)
Martijn
From: Martin Evans
Martin J. Evans wrote:
> I am using POE::Component::Server::tcp and receiving utf8 data through
> the socket. How can I set the utf8 flag on the socket? as in
> binmode($fh, ':utf8').
>
> Thanks
>
> Martin
I should have pointed out I'm using client_input handler and not doing
much of the work myself e.g., I cannot use accept_handler.
Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com
From: Martin J. Evans
I am using POE::Component::Server::tcp and receiving utf8 data through
the socket. How can I set the utf8 flag on the socket? as in
binmode($fh, ':utf8').
Thanks
Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com
From: Tony Cook
On Sun, Jul 06, 2008 at 10:05:05PM -0700, mike johnson wrote:
>
>
>
> When trying to use POE::Loop::Event or POE::Loop::IO_Poll I get the error:
>
> Can't locate object method "loop_ignore_signal" via package "POE::Kernel" at /usr/lib/perl5/site_perl/5.8.8/POE/Resource/Signals.pm line 138.
> BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/POE/Loop/PerlSignals.pm line 19.
> Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/POE/Loop/IO_Poll.pm line 14.
> BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/POE/Loop/IO_Poll.pm line 14.
>
>
> I don't get this error when not specifing a specific loop mechanism to use. Am I doing something wrong?
>
> Running on Linux Redhat machine. POE version is 1.0002 installed via cpan.
>
> Thanks for any help anyone can provide in advance.
Loops depend on the POE kernel loading them, you typically can't load
them independently of POE::Kernel.
You can get POE::Kernel to load a specific loop either by loading the
module they depend on:
use Event;
use POE; # loads POE::Kernel, which loads POE::Loop::Event
or by supplying a loop option to POE::Kernel:
use POE::Kernel { loop => 'Event' };
# 1.001 or later
use POE::Kernel { loop => 'POE::XS::Loop::Poll' };
See "Using POE with Other Event Loops" in perldoc POE::Kernel.
Though that says they can be loaded independently, which typically
doesn't work, since they rely upon trace constants created by
POE::Kernel.
Tony
From: mike johnson
When trying to use POE::Loop::Event or POE::Loop::IO_Poll I get the error:
Can't locate object method "loop_ignore_signal" via package "POE::Kernel" at /usr/lib/perl5/site_perl/5.8.8/POE/Resource/Signals.pm line 138.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/POE/Loop/PerlSignals.pm line 19.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/POE/Loop/IO_Poll.pm line 14.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/POE/Loop/IO_Poll.pm line 14.
I don't get this error when not specifing a specific loop mechanism to use. Am I doing something wrong?
Running on Linux Redhat machine. POE version is 1.0002 installed via cpan.
Thanks for any help anyone can provide in advance.
_________________________________________________________________
Its a talkathon but its not just talk.
http://www.imtalkathon.com/?source=EML_WLH_Talkathon_JustTalk
From: Tony Cook
And of course, as I post this I find a problem with error handling.
Please wait for a new release.
Tony
On Fri, Jul 04, 2008 at 10:12:29AM +1000, Tony Cook wrote:
> In the spirit of POE::XS::Queue::Array, I've released
> POE::XS::Loop::Poll, an implementation of POE's event loop written in
> C.
>
> I haven't done any speed benchmarks (or found any), but I expect it to
> be slightly lower overhead than the built-in POE::Loop::Select.
>
> Of course, without a benchmark it can only be a guess.
>
> I'm fairly confident of the code as it stands, but I wouldn't
> recommend pushing it into production without testing.
>
> Tony
From: Tony Cook
In the spirit of POE::XS::Queue::Array, I've released
POE::XS::Loop::Poll, an implementation of POE's event loop written in
C.
I haven't done any speed benchmarks (or found any), but I expect it to
be slightly lower overhead than the built-in POE::Loop::Select.
Of course, without a benchmark it can only be a guess.
I'm fairly confident of the code as it stands, but I wouldn't
recommend pushing it into production without testing.
Tony
From: Martijn van Beers
On Mon, 2008-06-23 at 12:38 -0430, Alejandro Imass wrote:
> Yep, indeed that is the problem. When PoCo::generic is mapping the
> methods it will discard anything that is not strictly lower case:
>
> ##################################################
> sub __method_map
> {
> my( $package, $method ) = @_;
> ($method =~ m/^(.+)\:\:([^\:]+)/);
> my $pk = $1;
> my $sub = $2;
>
> HERE-----> return unless $sub =~ /[a-z]$/; <------------ HERE
uh, you're reading it wrong. This regexo only checks if the last
character of the subname is lowercase.
> return if $sub =~ m/^_/ || $sub =~ m/(carp|croak|confess)$/;
> return ( $pk, $sub );
> }
>
> I suggest to change this regexp to: [^_A-Z] and to be consistent would
> change also the regexp here (it's missing the underscore).
Which also explains why the testing for underscore is a different
regexp.
Martijn
From: Kaare Rasmussen
> I think between Poe::Component::Server::XMLRPC and
> POE::Component::Server::AsyncEndpoint I should be able to glean enough
> details to get something working with SOAP::Lite.
For Webservice work you might be better off using XML::Compile. It seems much
more logical, and takes care of all the SOAP handling.
--
Med venlig hilsen
Kaare Rasmussen, Jasonic
Jasonic Telefon: +45 3816 2582
Nordre Fasanvej 12
2000 Frederiksberg Email: kaare@jasonic.dk
From: Ian Docherty
Apologies if this has already been asked, I have only just joined the
mailing list.
Am I correct in thinking the official web site is http://poe.perl.org
<http://poe.perl.org/> and that the site is not working?
Does anyone know how to get it fixed?
Regards
Ian
This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of RedBee Media Metadata. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the sender.
Red Bee Media Metadata is a trading name of Broadcasting Dataservices Limited.
Registered in England and Wales No.: 2554733. Registered Office: 201 Wood Lane, London W12 7TP, UK.
Broadcasting Dataservices Limited is a wholly owned subsidiary of Red Bee Media Limited.