Change CurlRequestOptions.bDontReuseConnections

Hi,

FCurlHttpManager::CurlRequestOptions.bDontReuseConnections is default set to false. I need to change this value to true. How can I do this?

Thank you.

Can you elaborate more, what are you chasing after ?
Because in a first look, answer is look like

FCurlHttpManager::CurlRequestOptions.bDontReuseConnections = true

Unfortunately, I can’t access FCurlHttpManager to set this to true. However, I did find the following in the UE4 code:

// Init curl request options
if (FParse::Param(FCommandLine::Get(), TEXT("noreuseconn")))
{
	CurlRequestOptions.bDontReuseConnections = true;
}

But I have no idea how to pass this option to the command line…

You will use tilda to open command line, check noreuseconn and click.

Unfortunately, It’s not a config variable so it can’t be found inside the editor. The noreuseconn is specified as a parameter when creating the thread that executes HTTP requests.

Can you send me code of call where do you use FCurlHTTPManager ?
This is console command so you need to put noreuseconn can start editor with command line. Try this
"<EnginePath>\Engine\Binaries\Win64\UnrealEditor.exe" "<Project_Path>/ProjectName.uproject" -noreuseconn

That might work, I will try that later. Is it also possible to package the project with this command line paramater?

Yes, if you open with editor and package project from there, it will work or if you invoking packaging from cli, just put there as well.