miss状态才进行缓存更新。
This commit is contained in:
@@ -1344,8 +1344,7 @@ void pangu_on_http_data(const struct tfe_stream * stream, const struct tfe_http_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(tfe_http_in_response(events)
|
if(tfe_http_in_response(events) && ctx->pending_result==PENDING_RESULT_MISS)
|
||||||
&& (ctx->pending_result==PENDING_RESULT_MISS||ctx->pending_result==PENDING_RESULT_ALLOWED))
|
|
||||||
{
|
{
|
||||||
cache_update(session, events, body_frag, frag_size, thread_id, ctx);
|
cache_update(session, events, body_frag, frag_size, thread_id, ctx);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user