atom feed4 messages in ru.sysoev.nginxRe: Write a speed-limit module, any s...
FromSent OnAttachments
superguiJul 19, 2009 11:46 pm 
Gabriel RamugliaJul 20, 2009 7:26 am 
Grzegorz SienkoJul 21, 2009 8:48 am 
superguiJul 21, 2009 8:01 pm 
Subject:Re: Write a speed-limit module, any suggestion?
From:Grzegorz Sienko (sta@krecio.pl)
Date:Jul 21, 2009 8:48:59 am
List:ru.sysoev.nginx

Something like this? http://wiki.nginx.org/NginxHttpCoreModule#limit_rate

2009/7/20 Gabriel Ramuglia <ga@vtunnel.com>:

There is a rate limit option you can set if you are using reproxy_url. There's a header you can set that is supposed to limit the rate of the download to whatever you set. So I would look over the documentation for reproxy_url and see if that will work for you.

On Sun, Jul 19, 2009 at 11:46 PM, supergui<ngin@nginx.us> wrote:

I want to write a module to transfer files to client, but it need to limit the
speed of transfer. how can i implement it ?

it is likely that i should output one buffer per time, and then check the avg
speed before, if expire the setting speed what should i do then?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,4234,4234#msg-4234