Mercurial > hg > nginx-quic
comparison src/http/ngx_http_write_filter.c @ 393:5659d773cfa8
nginx-0.0.7-2004-07-15-20:35:51 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 15 Jul 2004 16:35:51 +0000 |
parents | d1222d46b3f9 |
children | e7a68e14ccd3 |
comparison
equal
deleted
inserted
replaced
392:d1222d46b3f9 | 393:5659d773cfa8 |
---|---|
50 | 50 |
51 if (ctx == NULL) { | 51 if (ctx == NULL) { |
52 ngx_http_create_ctx(r, ctx, ngx_http_write_filter_module, | 52 ngx_http_create_ctx(r, ctx, ngx_http_write_filter_module, |
53 sizeof(ngx_http_write_filter_ctx_t), NGX_ERROR); | 53 sizeof(ngx_http_write_filter_ctx_t), NGX_ERROR); |
54 } | 54 } |
55 | |
56 #if (NGX_OPENSSL) | |
57 if (r->ssl && in == NULL && ctx->out == NULL) { | |
58 return ngx_http_ssl_shutdown(r); | |
59 } | |
60 #endif | |
61 | 55 |
62 size = 0; | 56 size = 0; |
63 flush = 0; | 57 flush = 0; |
64 last = 0; | 58 last = 0; |
65 ll = &ctx->out; | 59 ll = &ctx->out; |
129 | 123 |
130 sent = r->connection->sent; | 124 sent = r->connection->sent; |
131 | 125 |
132 /* STUB */ | 126 /* STUB */ |
133 #if (NGX_OPENSSL) | 127 #if (NGX_OPENSSL) |
134 if (r->ssl) { | 128 if (r->connection->ssl) { |
135 chain = ngx_http_ssl_write(r->connection, ctx->out, | 129 chain = ngx_http_ssl_write(r->connection, ctx->out, |
136 clcf->limit_rate ? clcf->limit_rate: | 130 clcf->limit_rate ? clcf->limit_rate: |
137 OFF_T_MAX_VALUE); | 131 OFF_T_MAX_VALUE); |
138 } else { | 132 } else { |
139 #endif | 133 #endif |