nxt_buf_filter.c (1:fdc027c56872) nxt_buf_filter.c (65:10688b89aa16)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 401 unchanged lines hidden (view full) ---

410 nxt_debug(task, "buf filter completion: %p \"%FN\" %O-%O",
411 b, f->filter_file->job_file.file.name, b->file_pos, b->file_end);
412
413 /* nxt_http_send_filter() might clear a buffer's file status. */
414 b->is_file = 1;
415
416 fb = ctx->buf;
417
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 401 unchanged lines hidden (view full) ---

410 nxt_debug(task, "buf filter completion: %p \"%FN\" %O-%O",
411 b, f->filter_file->job_file.file.name, b->file_pos, b->file_end);
412
413 /* nxt_http_send_filter() might clear a buffer's file status. */
414 b->is_file = 1;
415
416 fb = ctx->buf;
417
418 nxt_mem_cache_free0(f->mem_pool, ctx, sizeof(nxt_buf_filter_ctx_t));
418 nxt_mp_free(f->mem_pool, ctx);
419 nxt_buf_pool_free(&f->filter_file->buffers, b);
420
421 if (fb->file_pos < fb->file_end) {
422 nxt_buf_filter_file_read(task, f);
423 return;
424 }
425
426 if (b->file_end == fb->file_end) {

--- 23 unchanged lines hidden ---
419 nxt_buf_pool_free(&f->filter_file->buffers, b);
420
421 if (fb->file_pos < fb->file_end) {
422 nxt_buf_filter_file_read(task, f);
423 return;
424 }
425
426 if (b->file_end == fb->file_end) {

--- 23 unchanged lines hidden ---