Author: Eran Kornblau erankor@gmail.com
Date: Thu Mar 2 08:46:00 2017 -0500
Added missing static specifiers.
As of the above commit, the ngx_udp_connect function is static (not exported) and so cannot be used by this library.
I don't know of a good fix, but if some suggests one to me I will attempt to implement it.
Currently I'm applying this patch to my nginx build.
diff -ru nginx-1.18.0/src/core/ngx_resolver.c nginx-1.18.0-jrw/src/core/ngx_resolver.c
--- nginx-1.18.0/src/core/ngx_resolver.c 2020-04-21 14:09:01.000000000 +0000
+++ nginx-1.18.0-jrw/src/core/ngx_resolver.c 2021-10-21 15:42:19.808367999 +0000
@@ -56,7 +56,7 @@
((u_char *) (n) - offsetof(ngx_resolver_node_t, node))
-static ngx_int_t ngx_udp_connect(ngx_resolver_connection_t *rec);
+ngx_int_t ngx_udp_connect(ngx_resolver_connection_t *rec);
static ngx_int_t ngx_tcp_connect(ngx_resolver_connection_t *rec);
@@ -4397,7 +4397,7 @@
}
-static ngx_int_t
+ngx_int_t
ngx_udp_connect(ngx_resolver_connection_t *rec)
{
int rc;
Author: Eran Kornblau erankor@gmail.com
Date: Thu Mar 2 08:46:00 2017 -0500
As of the above commit, the ngx_udp_connect function is static (not exported) and so cannot be used by this library.
I don't know of a good fix, but if some suggests one to me I will attempt to implement it.
Currently I'm applying this patch to my nginx build.