comparison src/core/ngx_output_chain.c @ 530:4c5d2c627a6c NGINX_0_8_17

nginx 0.8.17 *) Security: now "/../" are disabled in "Destination" request header line. *) Change: now $host variable value is always low case. *) Feature: the $ssl_session_id variable. *) Bugfix: socket leak; the bug had appeared in 0.8.11.
author Igor Sysoev <http://sysoev.ru>
date Mon, 28 Sep 2009 00:00:00 +0400
parents 005a70f9573b
children 8246d8a2c2be
comparison
equal deleted inserted replaced
529:b8ac674b0ec9 530:4c5d2c627a6c
512 } else { 512 } else {
513 513
514 #if (NGX_HAVE_ALIGNED_DIRECTIO) 514 #if (NGX_HAVE_ALIGNED_DIRECTIO)
515 515
516 if (ctx->unaligned) { 516 if (ctx->unaligned) {
517 if (ngx_directio_off(src->file->fd) == -1) { 517 if (ngx_directio_off(src->file->fd) == NGX_FILE_ERROR) {
518 ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, ngx_errno, 518 ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, ngx_errno,
519 ngx_directio_off_n " \"%s\" failed", 519 ngx_directio_off_n " \"%s\" failed",
520 src->file->name.data); 520 src->file->name.data);
521 } 521 }
522 } 522 }
548 if (ctx->unaligned) { 548 if (ctx->unaligned) {
549 ngx_err_t err; 549 ngx_err_t err;
550 550
551 err = ngx_errno; 551 err = ngx_errno;
552 552
553 if (ngx_directio_on(src->file->fd) == -1) { 553 if (ngx_directio_on(src->file->fd) == NGX_FILE_ERROR) {
554 ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, ngx_errno, 554 ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, ngx_errno,
555 ngx_directio_on_n " \"%s\" failed", 555 ngx_directio_on_n " \"%s\" failed",
556 src->file->name.data); 556 src->file->name.data);
557 } 557 }
558 558