Am Montag, 21. September 2015 22:56:52 UTC+2 schrieb sri:
>
> Just replace "$tx = $ua->start($tx);" with "$ua->start($tx => sub { my 
> ($ua, $tx) = @_; ... });" and buffer incoming bytes.
>

That´s what I thought I did in "proxy2.pl". 
 
Am Montag, 21. September 2015 23:01:06 UTC+2 schrieb sri:
>
> Your $ua might also be going out of scope.
>

Ouch.  And that´s the obvious thing I missed.
Moving the line 
my $ua = Mojo::UserAgent->new();
out of the scope of the sub fixed the problem neatly.

Thanks!
Heiko

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to