An Tao
An Tao
Would you like to paste your code here?
Middleware in drogon is not global, after registering your middleware to framework, did you add the name of middleware to your routing path in controllers?
This shows that the number of concurrency exceeds the upper limit of open file descriptors for the process. You should increase this upper limit via kernel parameters etc.
This feature is currently not supported, but many people have mentioned this need. I'm considering adding it in the future, but don't have a firm timeline yet. @mjyu51 thanks for...
@hks2002 感谢你的pr,这个pr涉及太多改动了,得谨慎,也许可以考虑先新建个分支。
@4yvakZ thanks for your feedback, I don’t know in what scenario you need to mix coroutine interfaces and synchronous blocking interfaces. If you must do this, you can explicitly switch...
You can always use the coroutine interfaces in your case, like: ```c++ orm::CoroMapper coromp(app().getDbClient("reader")); drogon_model::hw_db::ServerConfig version = co_await coromp.findByPrimaryKey("FRONT_VERSION"); //orm::Mapper mp(app().getDbClient("reader")); // drogon_model::hw_db::ServerConfig version = mp.findByPrimaryKey("FRONT_VERSION"); version = co_await coromp.findByPrimaryKey("FRONT_VERSION");...
> My case was only for reproduction purpose. In my app I have something like: > > //here we are in IOLoop > playerState = co_await readPlayerState(); // this internaly...
You could use the following option in the configuration file: ```json //connect_options: extra options for the connection. Only works for PostgreSQL now. //For more information, see https://www.postgresql.org/docs/16/libpq-connect.html#LIBPQ-CONNECT-OPTIONS "connect_options": { "statement_timeout":...
@rbugajewski @cstratopoulos @LilyWangL Do you know why this happens? I have no idea. Thanks very much.