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

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

777
778 nxt_conn_proxy_close(task, c, c->socket.data);
779}
780
781
782static nxt_msec_t
783nxt_conn_proxy_timeout_value(nxt_conn_t *c, uintptr_t data)
784{
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

777
778 nxt_conn_proxy_close(task, c, c->socket.data);
779}
780
781
782static nxt_msec_t
783nxt_conn_proxy_timeout_value(nxt_conn_t *c, uintptr_t data)
784{
785 nxt_msec_t *timer;
786 nxt_conn_proxy_t *p;
787
788 p = c->socket.data;
789
790 timer = (nxt_msec_t *) ((char *) p + data);
791
792 return *timer;
785 return nxt_value_at(nxt_msec_t, c->socket.data, data);
793}
794
795
796static void
797nxt_conn_proxy_refused(nxt_task_t *task, void *obj, void *data)
798{
799 nxt_conn_t *peer;
800 nxt_conn_proxy_t *p;

--- 194 unchanged lines hidden ---
786}
787
788
789static void
790nxt_conn_proxy_refused(nxt_task_t *task, void *obj, void *data)
791{
792 nxt_conn_t *peer;
793 nxt_conn_proxy_t *p;

--- 194 unchanged lines hidden ---