修正suspend/resume语义实现的若干问题,增加自行构建request/response的header标志

This commit is contained in:
Lu Qiuwen
2018-10-26 20:30:06 +08:00
parent d3d34355ef
commit cf64f01f7f
9 changed files with 104 additions and 35 deletions

View File

@@ -41,18 +41,20 @@ struct http_session_private
struct http_half_private * hf_private_req_user;
/* USER SETUP RESPONSE HALF */
struct http_half_private * hf_private_resp_user;
/* SUSPEND TAG */
bool suspend_tag_user;
/* SUSPEND EVENT */
tfe_http_event suspend_event;
/* SUSPEND TAG EFFECTIVE */
bool suspend_tag_effective;
/* STREAM WRITE EFFECTIVE */
bool stream_write_tag_effective;
/* RELEASE LOCK, when the tag is zero, the session can be destroyed */
int release_lock;
/* thread id */
unsigned int thread_id;
/* SUSPEND COUNTER, ONLY FOR DEBUG AND LOG */
#ifndef NDEBUG
int suspend_counter;
#endif
bool in_gc_queue;
};
struct http_connection_private