-
Notifications
You must be signed in to change notification settings - Fork 96
HTTP Timeout does not work #149
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
@szerwi, thanks for raising this issue. You are most probably using HTTPS for connecting to the server. |
Hi. Unfortunately, I'm using HTTP on ESP32, not ESP8266. |
Aha, my bad, sorry, I've overlooked your info, let me check again.. |
@szerwi, it is possible set connection timeout for ESP32 for HTTP connection. But it will not work for HTTPS, because timeout connection is not implemented there yet. |
@vlastahajek For the HTTP connection, do I need to set it using ESP32 libraries or using Influxdb library and functions that I've posted above? |
@szerwi, I've pushed the fix for this library. Just update the library from the master. No need to do any changes in your sources. |
Why setting the timeout still won't work over HTTPS? Is it dependent from you or is it a bug in ESP32 libraries? |
It is the problem in the |
FYI, my fix for ESP32 is merged. It should be part of the next release. |
Here are my client's settings:
In connection params I set the address that does not exist.
Expected behavior:
influxdb.writePoint()
should fail after 4 seconds.Actual behavior:
It fails after about 15 seconds.
Specifications:
The text was updated successfully, but these errors were encountered: