Klaus Demo nginx / cc65b08
fix segfault in SSL if limit_rate is used Igor Sysoev 12 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
945945
946946 for ( ;; ) {
947947
948 while (in && buf->last < buf->end) {
948 while (in && buf->last < buf->end && send < limit) {
949949 if (in->buf->last_buf || in->buf->flush) {
950950 flush = 1;
951951 }
972972 ngx_memcpy(buf->last, in->buf->pos, size);
973973
974974 buf->last += size;
975
976975 in->buf->pos += size;
976 send += size;
977977
978978 if (in->buf->pos == in->buf->last) {
979979 in = in->next;
998998 }
999999
10001000 buf->pos += n;
1001 send += n;
10021001 c->sent += n;
10031002
10041003 if (n < size) {