An Tao

Results 204 comments of An Tao

![image](https://github.com/drogonframework/drogon/assets/21002501/61ee6a40-d1f8-4d25-bff2-7f12b33e3a15) It works fine in my environment (native linux ubuntu 2204)

@IYinxf Thanks for your feed back. I think users should not set the `Content-Length` header themselves. The framework will set this header based on the actual size of the body...

你说的server证书是自签名证书吗?按说证书只影响ssl建立过程,不应该在大请求上有差别,看看两种实验还有其他变量变化吗?比如网络环境之类的。

> 无论是自签署证书还是正常的CA证书,直接使用都有这个问题,抓包时观察到数据确实是发送到端口上了,但是controller层接收不到,网络本地和跨网段都有这个问题 能详细说下环境吗?(OS,openssl版本,编译器,drogon版本)我看看能不能复现。

> 应该和操作系统无关,windows,linux都有,drogon 1.8.6,msvc,现在第一个问题是数据量大于ClientMaxBodySize时(设置的16M,发送的32M),没有能够自动回复413,然后是https没有回复的问题,应该不是证书的问题,我还在排查 客户端是浏览器还是程序,看看发了content-length头了么,另外不走https直接走http端口正常吗?

> 我想加点打印调试一下,怎么在release下输出日志? 只有TRACE日志release会屏蔽,其它的只要高于你设置的level都会输出。

> 但是我没有输出任何日志文件,是哪里没设置吗 你看看你的配置文件里,log部分怎么设的,如果log_path没有设置,日志会输出到标准输出

> 没有读配置,在代码里设置了loglevel和logpath 应该是等效的

@TheEnigmist Thanks for your feedback. Have you tried the following example? https://github.com/drogonframework/drogon/tree/master/examples/websocket_server

Please refer to the article https://github.com/drogonframework/drogon/wiki/ENG-FAQ-1-Understanding-drogon-threading-model