comparison 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
comparison
equal deleted inserted replaced
391:b670db10cbbd 392:d1222d46b3f9
226 cscf = in_addr[i].core_srv_conf; 226 cscf = in_addr[i].core_srv_conf;
227 227
228 r->main_conf = cscf->ctx->main_conf; 228 r->main_conf = cscf->ctx->main_conf;
229 r->srv_conf = cscf->ctx->srv_conf; 229 r->srv_conf = cscf->ctx->srv_conf;
230 r->loc_conf = cscf->ctx->loc_conf; 230 r->loc_conf = cscf->ctx->loc_conf;
231
232 #if 1
233 r->ssl = 1;
234 r->filter_need_in_memory = 1;
235 #endif
231 236
232 server_name = cscf->server_names.elts; 237 server_name = cscf->server_names.elts;
233 r->server_name = &server_name->name; 238 r->server_name = &server_name->name;
234 239
235 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 240 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
813 818
814 if (!rev->ready) { 819 if (!rev->ready) {
815 return NGX_AGAIN; 820 return NGX_AGAIN;
816 } 821 }
817 822
818 #if 0 823 /* STUB */
819 n = ngx_http_ssl_read(r, r->header_in->last, 824 #if (NGX_OPENSSL)
820 r->header_in->end - r->header_in->last); 825 if (r->ssl) {
821 #else 826 n = ngx_http_ssl_read(r, r->header_in->last,
822 n = ngx_recv(r->connection, r->header_in->last, 827 r->header_in->end - r->header_in->last);
823 r->header_in->end - r->header_in->last); 828 } else {
829 #endif
830 n = ngx_recv(r->connection, r->header_in->last,
831 r->header_in->end - r->header_in->last);
832 #if (NGX_OPENSSL)
833 }
824 #endif 834 #endif
825 835
826 if (n == NGX_AGAIN) { 836 if (n == NGX_AGAIN) {
827 if (!r->header_timeout_set) { 837 if (!r->header_timeout_set) {
828 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); 838 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module);