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

vbart at nginx.com vbart at nginx.com
Mon Jan 28 15:34:09 UTC 2013


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

Log:
SSL: removed conditions that always hold true.



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 14:42:07 UTC (rev 5018)
+++ trunk/src/event/ngx_event_openssl.c	2013-01-28 15:34:09 UTC (rev 5019)
@@ -1210,7 +1210,7 @@
 
         size = buf->last - buf->pos;
 
-        if (!flush && buf->last < buf->end && c->ssl->buffer) {
+        if (!flush && buf->last < buf->end) {
             break;
         }
 
@@ -1232,10 +1232,8 @@
             break;
         }
 
-        if (buf->pos == buf->last) {
-            buf->pos = buf->start;
-            buf->last = buf->start;
-        }
+        buf->pos = buf->start;
+        buf->last = buf->start;
 
         if (in == NULL || send == limit) {
             break;



More information about the nginx-devel mailing list