-
Hi. I'm trying to change from [cpp rest sdk] to [drogon] in our project. I rewrote request function like below. (ai helped me...) `void REST_API::RequestHTTP(const REST_Auth& auth, const drogon::HttpMethod& mtd, const std::wstring& url, const std::chrono::microseconds timeout, int& result, std::wstring& recvStr, const Json::Value& data)
}` I am tried to call this function main tid, worker tid, but situation are same. at the in detailed,
hanging at f.get(); where did I do wrong...? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I figured it out myself. I should call app().run(); before use it and call app().quit(); when sw terminated. |
Beta Was this translation helpful? Give feedback.
-
where can i find docs, all they have is a wiki page... |
Beta Was this translation helpful? Give feedback.
I figured it out myself.
Sorry, I didn't read the documentation carefully.
I should call app().run(); before use it and call app().quit(); when sw terminated.