TSG-16056 修复deny动作,修复tsg_lua多线程调用问题和tfe编译告警
This commit is contained in:
@@ -199,7 +199,7 @@ static void get_rr_type_nsec3(char **ptr, nsec3_t *nsec3, char *end)
|
||||
}
|
||||
|
||||
// unused
|
||||
static int get_rr_signer(u_char **ptr, u_char *buf, int buflen, char *end)
|
||||
__attribute__((unused))static int get_rr_signer(u_char **ptr, u_char *buf, int buflen, char *end)
|
||||
{
|
||||
u_char *p = NULL;
|
||||
int len = 0, i = 0;
|
||||
|
||||
@@ -915,9 +915,9 @@ void doh_on_end(const struct tfe_stream *stream, const struct tfe_http_session *
|
||||
int ret = doh_send_log(g_doh_conf, session, stream, ctx);
|
||||
if (ret > 0)
|
||||
{
|
||||
doh_send_metric_log(stream, ctx, thread_id);
|
||||
ATOMIC_ADD(&(g_doh_conf->stat_val[STAT_LOG_NUM]), ret);
|
||||
}
|
||||
doh_send_metric_log(stream, ctx, thread_id);
|
||||
}
|
||||
|
||||
doh_ctx_free(ctx);
|
||||
|
||||
@@ -451,7 +451,7 @@ int doh_send_log(struct doh_conf *handle, const struct tfe_http_session *http, c
|
||||
for (size_t i = 0; i < result_num; i++)
|
||||
{
|
||||
|
||||
TFE_LOG_DEBUG(handle->local_logger, "URL: %s, policy_id: %d, service: %d, do_log:%d",
|
||||
TFE_LOG_DEBUG(handle->local_logger, "URL: %s, policy_id: %lld, service: %d, do_log:%d",
|
||||
http->req->req_spec.url,
|
||||
result[i].config_id,
|
||||
result[i].service_id,
|
||||
|
||||
Reference in New Issue
Block a user