[nginx] svn commit: r5024 - trunk/src/event

vbart at nginx.com vbart at nginx.com
Mon Jan 28 15:41:12 UTC 2013


Author: vbart
Date: 2013-01-28 15:41:12 +0000 (Mon, 28 Jan 2013)
New Revision: 5024
URL: http://trac.nginx.org/nginx/changeset/5024/nginx

Log:
SSL: take into account data in the buffer while limiting output.

In some rare cases this can result in a more smooth sending rate.



Modified:
   trunk/src/event/ngx_event_openssl.c

Modified: trunk/src/event/ngx_event_openssl.c
===================================================================
--- trunk/src/event/ngx_event_openssl.c	2013-01-28 15:40:25 UTC (rev 5023)
+++ trunk/src/event/ngx_event_openssl.c	2013-01-28 15:41:12 UTC (rev 5024)
@@ -1168,7 +1168,7 @@
         buf->end = buf->start + NGX_SSL_BUFSIZE;
     }
 
-    send = 0;
+    send = buf->last - buf->pos;
     flush = (in == NULL) ? 1 : buf->flush;
 
     for ( ;; ) {



More information about the nginx-devel mailing list