Closed mbwilding closed 2 years ago
Running this locally as a unit test it works instantly.
Solved by:
_http = new HttpClient(new HttpClientHandler
{
SslProtocols = SslProtocols.Tls12,
CheckCertificateRevocationList = false, // False
ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => true
});
I'm glad you've found solution. Usually this workaround helps to avoid SSL connection issue, but I haven't heard of any delay issues before. Maybe I need to investigate this issue. Thanks for reporting!
It was to do with certificate revocation. Setting to false solved that. Otherwise it takes a minute to connect within an AWS lambda.
Hey, when I do my first request it takes a minute before the rest of the queries go through instantly. Do you know why there is a 1 min delay, I am assuming it's a timeout of some sort.
This is where the initial one minute delay would occur.