Re: POE::Filter error reporting

2007-08-14 Thread David Davis
My work on POE::Filter::SSL is relevant here. I needed a way to pass OOB data back to the readwrite wheel during the SSL negotiation. The method LotR and I came up works great. I pass an array ref to get_one (lets call it $oob), and any time a filter has OOB data, it blesses it into a namespace,

POE::Test::Loops 0.97 released

2007-08-14 Thread Rocco Caputo
Good luck installing it. I didn't include a POE::Test::Loops module in the distribution. So maybe that's the first TODO for 0.98. :) What is it? It's over 420 POE::Loop::* tests from POE, bundled into a separate distribution so that any POE::Loop author can reuse them. It comes with a u

Re: POE::Filter error reporting

2007-08-14 Thread Martijn van Beers
There was a discussion about this on #poe, which I thought I'd share: <+nperez> an isa check every single time something goes through the filter just seems like overkill... <+LotR> compared to the work that Filter::XML does? <+nperez> yes, because it will add up. hold on, writing a benc

Re: POE::Filter error reporting

2007-08-14 Thread Matt Sickler
I second this method. It provides a simple API, and simple Filters wouldn't have to be modified much. On 8/14/07, Nicholas Perez <[EMAIL PROTECTED]> wrote: > I second this. > > And I think something like POE::Filter::Error would be a good place to > encapsulate something like that. But like what

Re: POE::Filter error reporting

2007-08-14 Thread Martijn van Beers
On Tue, 2007-08-14 at 12:00 -0500, Nicholas Perez wrote: > I second this. > > And I think something like POE::Filter::Error would be a good place to > encapsulate something like that. But like what was stated in IRC, > making the error appear in the normal data stream could be > problematic. I sug

Re: POE::Filter error reporting

2007-08-14 Thread Nicholas Perez
I second this. And I think something like POE::Filter::Error would be a good place to encapsulate something like that. But like what was stated in IRC, making the error appear in the normal data stream could be problematic. I suggest a property on the filter itself store an error object that can b

POE::Filter error reporting

2007-08-14 Thread Martijn van Beers
Hi, so with filters becoming more and more complex (e.g. POE::Filter::XML, Filter::HTTPD) I think it would be a good idea to have a standard way of reporting back errors. Currently Filter::HTTPD returns a HTTP::Response object instead of a HTTP::Request, to send back to the remote end. Filter::XM