An Tao
An Tao
目前没有,断了client内部自己会重连
https://drogonframework.github.io/drogon-docs/#/ENG/ENG-17-Coroutines?id=enabling-coroutines
Sorry you can't do that currently, you could add some options to the AccessLogger's configuration to achieve this, please refer to the ssl_redirect_exempt option of the SecureSSLRedirector plugin.
可以在非主线程里run,也可以自己创建一个EventLoopThread,把它的loop作为创建HttpClient的参数
An OPTIONS request with a path of * (i.e. OPTIONS * HTTP/1.1) is a server-wide request. It is used by the client to ask: "What HTTP methods does this server...
@mowangshuying Thanks for your patch, can we eliminate these warnings by standardizing the code?
@mike-5345 Thanks so much for your feedback. Yes, drogon's transaction does not provide such fine-grained control. Pessimism or optimism depends on the database configuration. We can consider adding it in...
您使用的什么数据库?drogon如果检测到链接断开是会自动重连的。
1. mariadb某个版本客户端库增加了MYSQL_OPT_RECONNECT选项,我也配置了;尝试升级库; 2. 修改mysql的idle timeout参数; 3. 写个定时器,定时执行随便什么sql,使链接保持,间隔可以较长;
https://github.com/drogonframework/drogon/blob/a3b4779540831cb8c03addb591ced3080b488917/lib/tests/integration_test/server/CoroFilter.cpp#L7-L12 大概是这个样子,返回空就通过,返回一个构造好的HttpResponsePtr对象就拦截了。