ithewei

Results 131 comments of ithewei

HttpResponseWriter确实没考虑http2协议,所以目前不支持http2的异步响应。

`hlog_disable` ``` #include "hlog.h" int main() { hlog_disable(); ... } ```

You should call hlog_disable before first log print, such as main() entrance.

Test like this: ``` #include "hv/hlog.h" int main() { hlogi("before"); hlog_disable(); hlogi("after"); return 0; } ```

What I mean is that if you test this way, the correct result should be that before is printed but after is not printed.

Maybe you should see if calling `hlog_set_level` elsewhere in your program changes the log level

No bug! Do you use other libraries in your application, is it possible that you use other libraries, which encapsulate libhv, and call hlog_set_level?

Another way is to set the handler to change the log output mode,like this: ``` void custom_log_handler(int loglevel, const char* buf, int len) { // do nothing } hlog_set_handler(custom_log_handler); ```

> @ithewei > > > Another way is to set the handler to change the log output mode,like this: > > ``` > > void custom_log_handler(int loglevel, const char* buf,...

1、You can explicitly delete TcpClient before app exit; 2、remove the code line `hlogi("EventLoopThread stopped...` directly.