comparison src/event/ngx_event_pipe.c @ 464:c8cfb6c462ef NGINX_0_7_44

nginx 0.7.44 *) Feature: the ngx_http_proxy_module preliminary cache support. *) Feature: the --with-pcre option in the configure. *) Feature: the "try_files" directive is now allowed on the server block level. *) Bugfix: the "try_files" directive handled incorrectly a query string in a fallback parameter. *) Bugfix: the "try_files" directive might test incorrectly directories. *) Bugfix: if there is the single server for given address:port pair, then captures in regular expressions in a "server_name" directive did not work.
author Igor Sysoev <http://sysoev.ru>
date Mon, 23 Mar 2009 00:00:00 +0300
parents dac47e9ef0d5
children 6484cbba0222
comparison
equal deleted inserted replaced
463:51cb914e6d3a 464:c8cfb6c462ef
421 { 421 {
422 u_char *prev; 422 u_char *prev;
423 size_t bsize; 423 size_t bsize;
424 ngx_int_t rc; 424 ngx_int_t rc;
425 ngx_uint_t flush, prev_last_shadow; 425 ngx_uint_t flush, prev_last_shadow;
426 ngx_chain_t *out, **ll, *cl; 426 ngx_chain_t *out, **ll, *cl, file;
427 ngx_connection_t *downstream; 427 ngx_connection_t *downstream;
428 428
429 downstream = p->downstream; 429 downstream = p->downstream;
430 430
431 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0, 431 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0,
484 p->downstream_error = 1; 484 p->downstream_error = 1;
485 return ngx_event_pipe_drain_chains(p); 485 return ngx_event_pipe_drain_chains(p);
486 } 486 }
487 487
488 p->in = NULL; 488 p->in = NULL;
489 }
490
491 if (p->cacheable && p->buf_to_file) {
492
493 file.buf = p->buf_to_file;
494 file.next = NULL;
495
496 if (ngx_write_chain_to_temp_file(p->temp_file, &file)
497 == NGX_ERROR)
498 {
499 return NGX_ABORT;
500 }
489 } 501 }
490 502
491 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, p->log, 0, 503 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, p->log, 0,
492 "pipe write downstream done"); 504 "pipe write downstream done");
493 505