Mercurial > hg > nginx
diff src/http/ngx_http_request.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 | 80e72c428b39 |
children | 5659d773cfa8 |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -229,6 +229,11 @@ static void ngx_http_init_request(ngx_ev r->srv_conf = cscf->ctx->srv_conf; r->loc_conf = cscf->ctx->loc_conf; +#if 1 + r->ssl = 1; + r->filter_need_in_memory = 1; +#endif + server_name = cscf->server_names.elts; r->server_name = &server_name->name; @@ -815,12 +820,17 @@ static ssize_t ngx_http_read_request_hea return NGX_AGAIN; } -#if 0 - n = ngx_http_ssl_read(r, r->header_in->last, - r->header_in->end - r->header_in->last); -#else - n = ngx_recv(r->connection, r->header_in->last, - r->header_in->end - r->header_in->last); +/* STUB */ +#if (NGX_OPENSSL) + if (r->ssl) { + n = ngx_http_ssl_read(r, r->header_in->last, + r->header_in->end - r->header_in->last); + } else { +#endif + n = ngx_recv(r->connection, r->header_in->last, + r->header_in->end - r->header_in->last); +#if (NGX_OPENSSL) + } #endif if (n == NGX_AGAIN) {