nxt_upstream_round_robin.c (13:3a52b2c3d3f1) nxt_upstream_round_robin.c (20:4dc92b438f58)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

105 peer[i].sockaddr = sa;
106 }
107
108 up->upstream = urr;
109
110 /* STUB */
111 up->sockaddr = peer[0].sockaddr;
112
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

105 peer[i].sockaddr = sa;
106 }
107
108 up->upstream = urr;
109
110 /* STUB */
111 up->sockaddr = peer[0].sockaddr;
112
113 nxt_job_destroy(jbs);
113 nxt_job_destroy(task, jbs);
114 up->ready_handler(task, up);
115
116 //nxt_upstream_round_robin_get_peer(up);
117 return;
118
119fail:
120
114 up->ready_handler(task, up);
115
116 //nxt_upstream_round_robin_get_peer(up);
117 return;
118
119fail:
120
121 nxt_job_destroy(jbs);
121 nxt_job_destroy(task, jbs);
122
123 up->ready_handler(task, up);
124}
125
126
127static void
128nxt_upstream_round_robin_peer_error(nxt_task_t *task, void *obj, void *data)
129{

--- 71 unchanged lines hidden ---
122
123 up->ready_handler(task, up);
124}
125
126
127static void
128nxt_upstream_round_robin_peer_error(nxt_task_t *task, void *obj, void *data)
129{

--- 71 unchanged lines hidden ---