On Wed, Jun 19, 2002 at 03:39:11PM -0400, Peter Chen wrote:
> On Wed, 2002-06-19 at 14:45, Rocco Caputo wrote:
> > The problem actually lies in POE::Component::Server::TCP.  I poorly
> > implemented a new feature in 0.20 that caused the server to reuse
> > filters between requests.
> 
> I wonder whether the same bug exists in POE::Wheel::Run.  
> 
> I am seeing lines from stderr sent to StdoutEvent.  The problem is quite
> reproducible.  When I specify separate StdoutFilter and StderrFilter,
> the problem goes away.
> 
> Looking at the code in POE::Wheel::Run::new(). it seems that the default
> behavior is to share $all_filter among stdin, stdout, and stderr.

[...]

I've changed the interface for POE::Wheel::Run.  Expect minor breakage.

The Filter parameter is now StdioFilter, and it only applies to STDIN
and STDOUT.  StderrFilter is now required if it's not going to be the
default (POE::Filter::Line, Literal => "\n").

I decided against Filter being used for STDIN and STDOUT because
people might expect it also to apply to STDERR.  Renaming it
StdioFilter is a little less misleading.

In the absence of feedback, this will be committed later today and
released in 0.22 today or tomorrow.

-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net

Reply via email to