-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Bug in datadog_checks/base/utils/http.py introducing a 10s timeout #19651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @sebastien-prudhomme, What's the configuration you're using to cause a timeout? I haven't been able to reproduce this issue:
This is my configuration:
I didn't mean to close - reopening issue. |
Hi @Kyle-Neale , the problem happens when using a website with a problem in it's certificate. Our certificate had only a CommonName and no subjectAltName which is now considered as a bad certificate in Python or Chrome. "https://www.google.com/" is just an example for the parsing problem. Maybe you can reproduce by using one of the URL on https://badssl.com/ like https://wrong.host.badssl.com/ |
I've noticed a 10s timeout when using http_check on an URL with a problem in its certificate.
It seems related to that PR #14817
With an URL without a port, for instance "https://www.google.com",
parsed_url.port
is None and the code tries to connect to an empty port, leading to 10s default TCP timeout I guess.The text was updated successfully, but these errors were encountered: