[nginx] svn commit:  r5022 - trunk/src/event
    vbart at nginx.com 
    vbart at nginx.com
       
    Mon Jan 28 15:38:36 UTC 2013
    
    
  
Author: vbart
Date: 2013-01-28 15:38:36 +0000 (Mon, 28 Jan 2013)
New Revision: 5022
URL: http://trac.nginx.org/nginx/changeset/5022/nginx
Log:
SSL: calculation of buffer size moved closer to its usage.
No functional changes.
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:37:11 UTC (rev 5021)
+++ trunk/src/event/ngx_event_openssl.c	2013-01-28 15:38:36 UTC (rev 5022)
@@ -1207,12 +1207,12 @@
             }
         }
 
-        size = buf->last - buf->pos;
-
         if (!flush && send < limit && buf->last < buf->end) {
             break;
         }
 
+        size = buf->last - buf->pos;
+
         n = ngx_ssl_write(c, buf->pos, size);
 
         if (n == NGX_ERROR) {
    
    
More information about the nginx-devel
mailing list