comparison src/event/ngx_event_openssl.c @ 5021:674f8739e443

SSL: calculation of buffer size moved closer to its usage. No functional changes.
author Valentin Bartenev <vbart@nginx.com>
date Mon, 28 Jan 2013 15:38:36 +0000
parents 587dbe2edc5f
children 1d819608ad4a
comparison
equal deleted inserted replaced
5020:587dbe2edc5f 5021:674f8739e443
1205 if (in->buf->pos == in->buf->last) { 1205 if (in->buf->pos == in->buf->last) {
1206 in = in->next; 1206 in = in->next;
1207 } 1207 }
1208 } 1208 }
1209 1209
1210 size = buf->last - buf->pos;
1211
1212 if (!flush && send < limit && buf->last < buf->end) { 1210 if (!flush && send < limit && buf->last < buf->end) {
1213 break; 1211 break;
1214 } 1212 }
1213
1214 size = buf->last - buf->pos;
1215 1215
1216 n = ngx_ssl_write(c, buf->pos, size); 1216 n = ngx_ssl_write(c, buf->pos, size);
1217 1217
1218 if (n == NGX_ERROR) { 1218 if (n == NGX_ERROR) {
1219 return NGX_CHAIN_ERROR; 1219 return NGX_CHAIN_ERROR;