Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions src/In.ProjectEKA.HipService/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,20 @@ public class Startup
public Startup(IConfiguration configuration)
{
Configuration = configuration;
var clientHandler = new HttpClientHandler
// Removing for timebeing
// var clientHandler = new HttpClientHandler
// {
// ServerCertificateCustomValidationCallback = (
// sender,
// cert,
// chain,
// sslPolicyErrors) => true
// };
var clientHandler = new SocketsHttpHandler
{
ServerCertificateCustomValidationCallback = (
sender,
cert,
chain,
sslPolicyErrors) => true
PooledConnectionLifetime = TimeSpan.FromMinutes(10),
PooledConnectionIdleTimeout = TimeSpan.FromMinutes(5),
MaxConnectionsPerServer = 10
};
HttpClient = new HttpClient(clientHandler)
{
Expand Down