增加Per Stream摘要日志功能,修正TCP上、下游连接不能联动关闭的问题。

* 增加Per Stream摘要日志功能,记录连接四元组、HTTP URL等关键信息,便于调试;
* 原实现在上游连接关闭时,不能关闭下游连接(反之亦然),现修正。
This commit is contained in:
Lu Qiuwen
2018-09-21 15:03:33 +08:00
parent 244c17fa2e
commit c0d1b9cf63
8 changed files with 240 additions and 68 deletions

View File

@@ -56,6 +56,9 @@ struct tfe_conn_private
struct tfe_stream_private
{
struct tfe_stream head;
char * str_stream_addr;
void * stream_logger;
struct tfe_proxy * proxy_ref;
struct tfe_thread_ctx * thread_ref;