nxt_router.c (103:88fc973fd7a2) nxt_router.c (113:b0148ec28c4d)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_router.h>

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

1100
1101 ret = nxt_app_http_req_init(task, ap);
1102 if (nxt_slow_path(ret != NXT_OK)) {
1103 nxt_router_conn_close(task, c, data);
1104 return;
1105 }
1106
1107 c->socket.data = ap;
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_router.h>

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

1100
1101 ret = nxt_app_http_req_init(task, ap);
1102 if (nxt_slow_path(ret != NXT_OK)) {
1103 nxt_router_conn_close(task, c, data);
1104 return;
1105 }
1106
1107 c->socket.data = ap;
1108
1109 ap->r.remote.start = nxt_sockaddr_address(c->remote);
1110 ap->r.remote.length = c->remote->address_length;
1108 }
1109
1110 h = &ap->r.header;
1111
1112 ret = nxt_app_http_req_parse(task, ap, b);
1113
1114 nxt_debug(task, "http parse request: %d", ret);
1115

--- 280 unchanged lines hidden ---
1111 }
1112
1113 h = &ap->r.header;
1114
1115 ret = nxt_app_http_req_parse(task, ap, b);
1116
1117 nxt_debug(task, "http parse request: %d", ret);
1118

--- 280 unchanged lines hidden ---