comparison src/http/ngx_http_write_filter.c @ 392:d1222d46b3f9

nginx-0.0.7-2004-07-15-00:07:58 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 14 Jul 2004 20:07:58 +0000
parents b670db10cbbd
children 5659d773cfa8
comparison
equal deleted inserted replaced
391:b670db10cbbd 392:d1222d46b3f9
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
55 61
56 size = 0; 62 size = 0;
57 flush = 0; 63 flush = 0;
58 last = 0; 64 last = 0;
59 ll = &ctx->out; 65 ll = &ctx->out;
121 return NGX_OK; 127 return NGX_OK;
122 } 128 }
123 129
124 sent = r->connection->sent; 130 sent = r->connection->sent;
125 131
126 chain = ngx_write_chain(r->connection, ctx->out, 132 /* STUB */
127 clcf->limit_rate ? clcf->limit_rate: 133 #if (NGX_OPENSSL)
128 OFF_T_MAX_VALUE); 134 if (r->ssl) {
135 chain = ngx_http_ssl_write(r->connection, ctx->out,
136 clcf->limit_rate ? clcf->limit_rate:
137 OFF_T_MAX_VALUE);
138 } else {
139 #endif
140 chain = ngx_write_chain(r->connection, ctx->out,
141 clcf->limit_rate ? clcf->limit_rate:
142 OFF_T_MAX_VALUE);
143 #if (NGX_OPENSSL)
144 }
145 #endif
129 146
130 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 147 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
131 "http write filter %X", chain); 148 "http write filter %X", chain);
132 149
133 if (clcf->limit_rate) { 150 if (clcf->limit_rate) {