未验证 提交 57469b27 编写于 作者: A Anton Firszov 提交者: GitHub

Fix HttpStress build (#72601)

上级 d6fef3b7
......@@ -54,9 +54,14 @@ HttpMessageHandler CreateHttpHandler()
}
else
{
SocketsHttpHandler handler = CreateSocketsHttpHandler(allowAllCertificates: true);
handler.PooledConnectionLifetime = _config.ConnectionLifetime.GetValueOrDefault(Timeout.InfiniteTimeSpan);
return handler;
return new SocketsHttpHandler()
{
PooledConnectionLifetime = _config.ConnectionLifetime.GetValueOrDefault(Timeout.InfiniteTimeSpan),
SslOptions = new SslClientAuthenticationOptions
{
RemoteCertificateValidationCallback = delegate { return true; }
}
};
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册