修正http解析层和业务层的若干bug。
This commit is contained in:
@@ -904,6 +904,10 @@ int make_revalidate_request(const struct tfe_stream * stream, const struct tfe_h
|
||||
ctx->cache_revalidate_req=NULL;
|
||||
return RESUMED_CB_NO_MORE_CALLS;
|
||||
}
|
||||
if(events & EV_HTTP_REQ_END && ctx->cache_revalidate_req)
|
||||
{
|
||||
ctx->cache_revalidate_req=NULL;
|
||||
}
|
||||
return RESUMED_CB_MORE_CALLS;
|
||||
}
|
||||
int dummy_resume(const struct tfe_stream * stream, const struct tfe_http_session * session,
|
||||
@@ -1027,6 +1031,8 @@ static void cache_pending_on_succ(future_result_t * result, void * user)
|
||||
}
|
||||
if(meta->etag) tfe_http_std_field_write(ctx->cache_revalidate_req, TFE_HTTP_IF_NONE_MATCH, meta->etag);
|
||||
if(meta->last_modified) tfe_http_std_field_write(ctx->cache_revalidate_req, TFE_HTTP_IF_MODIFIED_SINCE, meta->last_modified);
|
||||
|
||||
tfe_http_session_request_set(ctx->ref_session, ctx->cache_revalidate_req);
|
||||
ctx->resumed_cb=make_revalidate_request;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user