支持在应答侧suspend/resume功能,合并http_entry中处理request/response的流程

This commit is contained in:
Lu Qiuwen
2018-10-28 20:13:17 +08:00
parent cf64f01f7f
commit b677d8ad0f
6 changed files with 168 additions and 263 deletions

View File

@@ -45,6 +45,10 @@ struct http_session_private
tfe_http_event suspend_event;
/* SUSPEND TAG EFFECTIVE */
bool suspend_tag_effective;
/* SUSPEND TAG STREAM */
bool suspend_tag_signal;
/* RESUME SIGNAL */
bool resume_tag_singal;
/* RELEASE LOCK, when the tag is zero, the session can be destroyed */
int release_lock;
/* thread id */

View File

@@ -128,6 +128,7 @@ struct http_session_private * hs_private_create(struct http_connection_private *
void hs_private_destroy(struct http_session_private * hs_private);
void hs_private_gc_destroy(struct http_session_private * hs_private, struct hs_private_list * gc_list);
bool hs_private_can_destroy(struct http_session_private * hs_private);
void hs_private_hf_private_set(struct http_session_private * hs_private,
struct http_half_private * hf, enum tfe_http_direction);