On 19.06.2009 18:35 Rocco Caputo wrote:

> That's probably the keep-alive timer in POE::Component::Client::HTTP.   
> You can preemptively shutdown the client when you know you won't need  
> it anymore.

How would I do that? As I said I am totally new to POE and still have
some problems picking up the concepts involved.

> Starting and stopping POE involves some setup & cleanup overhead.  I'm  
> not sure if the overhead will exceed your expectations.  If it does, I  
> have a POE::Component::Client::HTTP wrapper that avoids the stop/ 
> restart and provides a different API.  Experimental, unreleased code,  
> no warranties, same-terms-as-perl, etc.:
> 
> http://poe.dyndns.org/~troc/tmp/pua.pl
> http://poe.dyndns.org/~troc/tmp/pua-defer.pl

Thanks, I will try them with my application (on Monday). Looks
promising, though in pua.pl I get this error message:

        (in cleanup) Can't call method "free" on an undefined value at
/usr/local/share/perl/5.8.8/POE/Component/Connection/Keepalive.pm line
44 during global destruction.

-Michael

Reply via email to