Mercurial > hg > nginx
comparison src/event/ngx_event_openssl.c @ 4669:56c98fb06bb3 stable-1.2
Merge of r4630: fixed c->sent with unbuffered ssl.
Update c->sent in ngx_ssl_send_chain() even if SSL buffer is not used.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 04 Jun 2012 12:00:38 +0000 |
parents | 67653855682e |
children | 3797a44d1fa9 |
comparison
equal
deleted
inserted
replaced
4668:ba2c7463ce18 | 4669:56c98fb06bb3 |
---|---|
993 c->buffered |= NGX_SSL_BUFFERED; | 993 c->buffered |= NGX_SSL_BUFFERED; |
994 return in; | 994 return in; |
995 } | 995 } |
996 | 996 |
997 in->buf->pos += n; | 997 in->buf->pos += n; |
998 c->sent += n; | |
998 | 999 |
999 if (in->buf->pos == in->buf->last) { | 1000 if (in->buf->pos == in->buf->last) { |
1000 in = in->next; | 1001 in = in->next; |
1001 } | 1002 } |
1002 } | 1003 } |