nxt_http_request.c (1007:7435036ed31e) nxt_http_request.c (1009:1c310945f81f)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

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

518 nxt_http_proto_t proto;
519 nxt_http_request_t *r;
520
521 r = obj;
522 proto.any = data;
523
524 nxt_debug(task, "http request error handler");
525
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

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

518 nxt_http_proto_t proto;
519 nxt_http_request_t *r;
520
521 r = obj;
522 proto.any = data;
523
524 nxt_debug(task, "http request error handler");
525
526 r->error = 1;
527
526 if (proto.any != NULL) {
527 nxt_http_proto_discard[r->protocol](task, r, nxt_http_buf_last(r));
528 }
529}
530
531
532static void
533nxt_http_request_close_handler(nxt_task_t *task, void *obj, void *data)

--- 50 unchanged lines hidden ---
528 if (proto.any != NULL) {
529 nxt_http_proto_discard[r->protocol](task, r, nxt_http_buf_last(r));
530 }
531}
532
533
534static void
535nxt_http_request_close_handler(nxt_task_t *task, void *obj, void *data)

--- 50 unchanged lines hidden ---