-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run_as_daemon 之后无法发送http请求 #2250
Comments
你发送http请求是在run as daemon之后吗?最好写个最小demo复现这个问题,我就可以本地调试看看 |
我发现当我的config.json文件中含有redis_clients的配置时,run_as_daemon后无法发送httpclient,当我删除config.json中的redis相关配置时一切正常。(实际我的程序中没有用到redis,配置中的redis描述是之前项目的残留) "redis_clients": [ 这些信息是否足够? |
发送httpclient是在run_as_daemon之后,在我的server收到一个请求后,我要在这个请求中去httpclient给另外一个server。 |
按理说,HttpClient和redisClient是没有关系的。如果他们冲突了,一定有潜在的bug。你可以先自己在框架里加些断点或者log尝试解决。我需要完整的demo才好调试,因为触发这个问题跟具体的写法可能密切相关。 |
`#include <drogon/drogon.h> #include #ifdef linux using namespace drogon; int nth_resp = 0; int main(int argc, char const* argv[])
} ` |
前台运行时候正常可以发送httpclient请求(异步)
run_as_daemon切到后台后,无法正确发送。
查看trace的log 发现move to queue之后没有got a new task
The text was updated successfully, but these errors were encountered: