Skip to content

Commit d5730ac

Browse files
adjust set_current_peer args
1 parent 13cc84b commit d5730ac

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

patch/1.27.1.1/ngx_lua-enable_keepalive.patch

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git src/ngx_http_lua_balancer.c src/ngx_http_lua_balancer.c
2-
index ae0f1380..8345026d 100644
2+
index ae0f1380..a00286c2 100644
33
--- src/ngx_http_lua_balancer.c
44
+++ src/ngx_http_lua_balancer.c
55
@@ -31,10 +31,39 @@ typedef struct {
@@ -614,18 +614,19 @@ index ae0f1380..8345026d 100644
614614
/* TODO */
615615
return;
616616
}
617-
@@ -860,8 +1039,8 @@ ngx_http_lua_balancer_save_session(ngx_peer_connection_t *pc, void *data)
617+
@@ -859,9 +1038,8 @@ ngx_http_lua_balancer_save_session(ngx_peer_connection_t *pc, void *data)
618+
618619
int
619620
ngx_http_lua_ffi_balancer_set_current_peer(ngx_http_request_t *r,
620-
const u_char *addr, size_t addr_len, int port,
621+
- const u_char *addr, size_t addr_len, int port,
621622
- const u_char *host, size_t host_len,
622623
- char **err)
623-
+ const u_char *host, size_t host_len, unsigned int cpool_crc32,
624+
+ const u_char *addr, size_t addr_len, int port, unsigned int cpool_crc32,
624625
+ unsigned int cpool_size, char **err)
625626
{
626627
ngx_url_t url;
627628
ngx_http_lua_ctx_t *ctx;
628-
@@ -927,25 +1106,8 @@ ngx_http_lua_ffi_balancer_set_current_peer(ngx_http_request_t *r,
629+
@@ -927,25 +1105,8 @@ ngx_http_lua_ffi_balancer_set_current_peer(ngx_http_request_t *r,
629630
return NGX_ERROR;
630631
}
631632

@@ -653,7 +654,7 @@ index ae0f1380..8345026d 100644
653654

654655
return NGX_OK;
655656
}
656-
@@ -1050,11 +1212,15 @@ ngx_http_lua_ffi_balancer_enable_keepalive(ngx_http_request_t *r,
657+
@@ -1050,11 +1211,15 @@ ngx_http_lua_ffi_balancer_enable_keepalive(ngx_http_request_t *r,
657658

658659
bp = (ngx_http_lua_balancer_peer_data_t *) u->peer.data;
659660

0 commit comments

Comments
 (0)