nxt_http_request.c (1402:6b8d8a11ff4f) nxt_http_request.c (1403:1cee885b7f10)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

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

564
565 if (access_log != NULL) {
566 access_log->handler(task, r, access_log);
567 }
568 }
569
570 r->proto.any = NULL;
571
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

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

564
565 if (access_log != NULL) {
566 access_log->handler(task, r, access_log);
567 }
568 }
569
570 r->proto.any = NULL;
571
572 if (r->body != NULL && nxt_buf_is_file(r->body)
573 && r->body->file->fd != -1)
574 {
575 nxt_fd_close(r->body->file->fd);
576
577 r->body->file->fd = -1;
578 }
579
572 if (nxt_fast_path(proto.any != NULL)) {
573 protocol = r->protocol;
574
575 nxt_http_proto[protocol].close(task, proto, conf);
576
577 nxt_mp_release(r->mem_pool);
578 }
579}
580
581
582static u_char *
583nxt_http_date_cache_handler(u_char *buf, nxt_realtime_t *now, struct tm *tm,
584 size_t size, const char *format)
585{
586 return nxt_http_date(buf, tm);
587}
580 if (nxt_fast_path(proto.any != NULL)) {
581 protocol = r->protocol;
582
583 nxt_http_proto[protocol].close(task, proto, conf);
584
585 nxt_mp_release(r->mem_pool);
586 }
587}
588
589
590static u_char *
591nxt_http_date_cache_handler(u_char *buf, nxt_realtime_t *now, struct tm *tm,
592 size_t size, const char *format)
593{
594 return nxt_http_date(buf, tm);
595}