使用缓存上传的future参数。
This commit is contained in:
@@ -927,7 +927,7 @@ void enforce_control_policy(const struct tfe_stream * stream, const struct tfe_h
|
||||
}
|
||||
void cache_query(const struct tfe_http_session * session, unsigned int thread_id, struct pangu_http_ctx * ctx)
|
||||
{
|
||||
ctx->f_cache_query=future_create("cache_query", cache_query_on_succ, cache_query_on_fail, ctx);
|
||||
ctx->f_cache_query=future_create("cache_down", cache_query_on_succ, cache_query_on_fail, ctx);
|
||||
ctx->cache_query_status=async_web_cache_query(g_pangu_rt->cache, thread_id, session->req, ctx->f_cache_query);
|
||||
if(ctx->cache_query_status==WEB_CACHE_QUERING)
|
||||
{
|
||||
@@ -961,7 +961,7 @@ void cache_update(const struct tfe_http_session * session, enum tfe_http_event e
|
||||
{
|
||||
web_cache_update_end(ctx->cache_update_ctx);
|
||||
ctx->cache_update_ctx=NULL;
|
||||
printf("cache update success: %s\n", ctx->ref_session->req->req_spec.url);
|
||||
//printf("cache update success: %s\n", ctx->ref_session->req->req_spec.url);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user