summaryrefslogtreecommitdiff
path: root/plugin/protocol
diff options
context:
space:
mode:
authorluqiuwen <[email protected]>2019-09-23 16:10:53 +0800
committerluqiuwen <[email protected]>2019-09-23 16:10:53 +0800
commitcd0fd187ad184543febd704c66b91bb73f326d27 (patch)
tree564036875740295eecce9de2da854be3a5be1ee6 /plugin/protocol
parent721820e37a476798ab05d96a80ed151eda72c7ba (diff)
#165 调整TFE进程的启动方式,使用notify方式启动;v4.1.4-20190923
* 调整notify超时时间为300秒; * 调整日志的记录方式,当使用notify方式启动时,初始化完毕后不在向标准输出写入日志。
Diffstat (limited to 'plugin/protocol')
-rw-r--r--plugin/protocol/http/test/test_http_convert.cpp1
-rw-r--r--plugin/protocol/http/test/test_http_half.cpp2
-rw-r--r--plugin/protocol/http2/test/test_http2_stream.cpp2
3 files changed, 4 insertions, 1 deletions
diff --git a/plugin/protocol/http/test/test_http_convert.cpp b/plugin/protocol/http/test/test_http_convert.cpp
index 72e5b3c..a1a3ff2 100644
--- a/plugin/protocol/http/test/test_http_convert.cpp
+++ b/plugin/protocol/http/test/test_http_convert.cpp
@@ -133,6 +133,7 @@ unsigned int monkey_gz_len = 407;
unsigned int monkey_len = 843;
unsigned int __64x_len = 64;
unsigned int __64x_gz_len = 28;
+bool g_print_to_stderr = true;
struct callback_ctx
{
diff --git a/plugin/protocol/http/test/test_http_half.cpp b/plugin/protocol/http/test/test_http_half.cpp
index aa2df56..6f14ebf 100644
--- a/plugin/protocol/http/test/test_http_half.cpp
+++ b/plugin/protocol/http/test/test_http_half.cpp
@@ -2,6 +2,8 @@
#include <gtest/gtest.h>
#include <http_half.h>
+bool g_print_to_stderr = true;
+
static const char * __identify_http_request =
"POST /gen_204 HTTP/1.1\r\n"
"Host: www.google.com\r\n"
diff --git a/plugin/protocol/http2/test/test_http2_stream.cpp b/plugin/protocol/http2/test/test_http2_stream.cpp
index 00d0fdd..cf4c83d 100644
--- a/plugin/protocol/http2/test/test_http2_stream.cpp
+++ b/plugin/protocol/http2/test/test_http2_stream.cpp
@@ -6,8 +6,8 @@
#include <nghttp2/nghttp2.h>
#include <event2/buffer.h>
-
#include "test_http2_stream.h"
+bool g_print_to_stderr = true;
/********* stub function ******************************/
const char * tfe_version()