nxt_http_request.c (465:0044e599fd24) nxt_http_request.c (493:745222d540a2)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

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

370 proto.any = data;
371
372 nxt_debug(task, "http request close handler");
373
374 if (!r->logged) {
375 r->logged = 1;
376 // STUB
377 nxt_debug(task, "http request log: \"%*s \"%V %V %V\" %d\"",
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

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

370 proto.any = data;
371
372 nxt_debug(task, "http request close handler");
373
374 if (!r->logged) {
375 r->logged = 1;
376 // STUB
377 nxt_debug(task, "http request log: \"%*s \"%V %V %V\" %d\"",
378 r->remote->address_length, nxt_sockaddr_address(r->remote),
378 (size_t) r->remote->address_length,
379 nxt_sockaddr_address(r->remote),
379 r->method, &r->target, &r->version, r->status);
380 }
381
382 handler = nxt_http_proto_close[r->protocol];
383
384 r->proto.any = NULL;
385 nxt_mp_release(r->mem_pool);
386
387 if (proto.any != NULL) {
388 handler(task, proto);
389 }
390}
380 r->method, &r->target, &r->version, r->status);
381 }
382
383 handler = nxt_http_proto_close[r->protocol];
384
385 r->proto.any = NULL;
386 nxt_mp_release(r->mem_pool);
387
388 if (proto.any != NULL) {
389 handler(task, proto);
390 }
391}