[nginx] svn commit: r4384 - trunk/src/http

mdounin at mdounin.ru mdounin at mdounin.ru
Mon Dec 26 10:49:57 UTC 2011


Author: mdounin
Date: 2011-12-26 10:49:57 +0000 (Mon, 26 Dec 2011)
New Revision: 4384

Log:
Fixed throughput problems with large limit_rate.

Previous attempt to fix this was in r1658 (0.6.18), though that one wasn't
enough (it was a noop).


Modified:
   trunk/src/http/ngx_http_write_filter_module.c

Modified: trunk/src/http/ngx_http_write_filter_module.c
===================================================================
--- trunk/src/http/ngx_http_write_filter_module.c	2011-12-26 10:49:03 UTC (rev 4383)
+++ trunk/src/http/ngx_http_write_filter_module.c	2011-12-26 10:49:57 UTC (rev 4384)
@@ -262,7 +262,7 @@
             }
         }
 
-        delay = (ngx_msec_t) ((nsent - sent) * 1000 / r->limit_rate + 1);
+        delay = (ngx_msec_t) ((nsent - sent) * 1000 / r->limit_rate);
 
         if (delay > 0) {
             c->write->delayed = 1;



More information about the nginx-devel mailing list