Home > Archive > PERL POE > June 2007 > How do I throttle bandwidth of PoCoCli HTTP?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How do I throttle bandwidth of PoCoCli HTTP?
|
|
| Anonymous 2007-06-14, 4:30 am |
| Is it possible to throttle the bandwidth when using
POE::Component::Client::HTTP? I need to do this at the application level, so
cannot rely on the OS or router. I've searched around and the only thing that
sounds like it is related is the watermark stuff in POE::Wheel::ReadWrite. I
was hoping there would be a PoCo like Net::FTP::Throttle, so I could just use
POE::Component::Throttle and it would DWIW.
Any pointers or examples would be greatly appreciated. Extra points if the
example is added to the wiki ;-)
| |
| Andy Grundman 2007-06-14, 7:19 pm |
|
On Jun 13, 2007, at 9:25 PM, Anonymous wrote:
> Is it possible to throttle the bandwidth when using
> POE::Component::Client::HTTP? I need to do this at the application
> level, so
> cannot rely on the OS or router. I've searched around and the only
> thing that
> sounds like it is related is the watermark stuff in
> POE::Wheel::ReadWrite. I
> was hoping there would be a PoCo like Net::FTP::Throttle, so I
> could just use
> POE::Component::Throttle and it would DWIW.
>
> Any pointers or examples would be greatly appreciated. Extra points
> if the
> example is added to the wiki ;-)
There's currently no way to do it, but this is something I need as
well, for throttling file uploads. Watermarks are the way to do it,
and there is one PoCo that I know of that does do some throttling
this way, PoCo::Server::FTP. I've been meaning to work on this but
haven't got around to it yet. A patch to handle watermarks in
Client::HTTP would be the easiest way to go, but a more generic way
to throttle a given wheel might be a better solution.
|
|
|
|
|