http requests are very slow
The issue is the following. When making http requests using WinInet everything goes smooth, as soon as we switch to CURL the requests take ages to complete or time-out. Manual calls to our client via any other way result in fast queries (even using the curl command line on linux is fast) What could be the issue here?
The following makes my http requests very fast, opposed to the default, which is curl.
This solution is not good enough for us, since we also want to release on linux and there Curl is the only option at the moment, so we really have to fix it. Any ideas what the cause could be? Serverside, UE4 side?
In addition to this i figured out something interesting. It seems you are still using version 7.41.0 of CURL, while the installation scripts in Engine\Source\ThirdParty\libcurl\BUILD.EPIC.sh seems to indicate it should be 7.48.0. I tried running the script myself, but it seems not to work properly anymore failing at includes etc.
Top content of BUILD.EPIC.sh:
Please let me know whats up with this latest find as well.
We identified the problem with the Curl implementation in Unreal Engine source.
Whenever performing a GET request, the message payload will not get uploaded. The timeout happens after the server waits for the data to be received (since the Content-Length header is getting sent), and never sends back a response.
The problem is resolved by
In particular, the VARest plugin can be patched to never sent the default JSON object when performing non-POST and non-PUT requests. I.e. conditionally executing
We have confirmed that this solution works on Windows.
Technical Director HyperReuts Europe
answered Dec 07 '16 at 12:26 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here