ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-poe
perl-poe
Re: Buffering in PoCo::Child
by Nicholas Perez other posts by this author
Dec 14 2006 8:07AM messages near this date
Buffering in PoCo::Child | Re: Buffering in PoCo::Child
It really depends on how you are processing the records and sending
them upstream. Could it be your Filter is doing the buffering?

On 12/14/06, Mike Schroeder <MikeSchroeder@[...].com>  wrote:
>  We have a POE app that reads multiple input files, reformats them and
>  the posts them to various binaries wrapped with PoCo::Child that in turn
>  load the data into our underlying system.  The problem we are running
>  into is that PoCo::Child seems to be buffering two or three records at a
>  time.  Sometimes we have interdependencies between records going into
>  various loaders, so we need these to be unbuffered.
> 
>  In looking at PoCo::Child, I see how it uses POE::Wheel::Run, which in
>  turn uses POE::Driver::SysRW and that Driver::SysRW has a flush() method.
> 
>  Do I need to patch PoCo::Child's write() to flush() after each write()?
>  Or is there some setting or a better way to get unbuffered writes to
>  PoCo::Child?
> 
> 
>  Thanks in advance for any advice.
> 
Thread:
Mike Schroeder
Nicholas Perez
Mike Schroeder

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved