增加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

@@ -444,6 +444,11 @@ TEST(HttpHalfConstructCallback, PostWithBody)
EXPECT_TRUE(ctx->req_end_called);
}
void tfe_stream_write_log(const struct tfe_stream * stream, int level, const char * fmt, ...)
{
return;
}
int main(int argc, char ** argv)
{
::testing::InitGoogleTest(&argc, argv);