build: link bundled libcurl with c-ares
libcurl has a built-in threaded resolver used for asynchronous DNS requests, however, when DNS server is slow to respond, the request still hangs tarantool until it is finished. The reason is that curl calls thread_join on the resolving thread internally upon timeout, making the calling thread hang until resolution has ended. Use c-ares as an asynchronous resolver instead to eliminate the problem. Closes #4591 (cherry picked from commit 23837076)
Showing
- .gitmodules 3 additions, 0 deletions.gitmodules
- CMakeLists.txt 6 additions, 0 deletionsCMakeLists.txt
- cmake/BuildAres.cmake 62 additions, 0 deletionscmake/BuildAres.cmake
- cmake/BuildLibCURL.cmake 29 additions, 2 deletionscmake/BuildLibCURL.cmake
- src/CMakeLists.txt 3 additions, 2 deletionssrc/CMakeLists.txt
- third_party/c-ares 1 addition, 0 deletionsthird_party/c-ares
Loading
Please register or sign in to comment