in reply to Re: HTTP::Proxy traffic calculating
in thread HTTP::Proxy traffic calculating

The main problem is that incoming data (response from external sources) comes to defined filter in chunks. For example for google.com there are 4 chunks, means 4 calls of sub defined in

$proxy->push_filter(response => ...

And $$buffer value seems desapearing in last (always 0-sized) chunk.

p.s. Thanks for great component :)

Broken code tag repaired by davido.