-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[WiFi] read all lines from slow servers #1720
Comments
I saw a lot of these when thingspeak plugin was active and mandatory 15s
interval was applied, the data was sent successfully and after that the
warning appeared. But next data sent was again successful and again the
warning appeared.
…On Sat, Sep 8, 2018, 15:19 Gijs Noorlander ***@***.***> wrote:
As suggested by @clumsy-stefan <https://github.com/clumsy-stefan> here: #1669
(comment)
<#1669 (comment)>
The suggested fix is based on this PR
<esp8266/Arduino@4fdff07>
in the ESP8266 Arduino examples. (PR 5113
<esp8266/Arduino#5113>)
I would like to know if someone who is experiencing issues with slow
servers, if they see this line in the logs:
"Timeout while reading input data!"
If so, please report it, so I can make the timeout setting configurable.
Later I will make the function safeReadStringUntil use a callback
construction and let it operate async.
For now the function is blocking, so it may cause all kind of issues.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1720>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADPy_58jLgO0CHcqDEj1yOJloFt-MhPlks5uY8PdgaJpZM4Wf3kW>
.
|
@sassod Was this with the controller queue included? (PR merged yesterday, but I made a lot of test builds.) |
I haven't updated all the nodes some are running builds dated May or April
but some have been updated to early September releases, I will need to
check if the most recent releases are still producing this info.
Unfortunately I'm not gonna be able to check because almost all have deep
sleep enabled and I'm away from home till 16th of September. Maybe someone
else can check the status if thingspeak plugin is sending multiple data one
after ankther with 15s delay
…On Sat, Sep 8, 2018, 15:30 Gijs Noorlander ***@***.***> wrote:
@sassod <https://github.com/sassod> Was this with the controller queue
included? (PR merged yesterday, but I made a lot of test builds.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1720 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADPy_2_Dus7A50_B74rlxa-oXQdOzvVPks5uY8aCgaJpZM4Wf3kW>
.
|
The change introduced with yesterdays merge is meant to be used for controllers like Thingspeak. Only thing I haven't checked is if the result of |
I only have "HTTP : C009 connection failed" in the logs (on firsth sight) and no TImeouts as described... but probably the same root cause?! |
@clumsy-stefan Looking at the code, that error will occur when
As far as I can see, the timeout cannot be set, but is 5000 msec for WiFiClient. |
[#1720] WiFi read all lines from slow servers
I've upgraded my server to a newer and faster HW/SW.... interestingly since then the units run without issues and reboots.... it really seems, that when the server is really slow or has tcp/network problems the client can get into some strange state... eg. having to many parallel open sessions or waiting too long for a result... |
quick update, all units runing with latest commit from yesterday (self compiled): nb: now I also do get the timeouts in the logs ... I only see reboots, when the server is not running/answering... other than this they seem to work fine.. Name / date / UPTIME (over 30 hours, most of them).... |
Another quick update... As per list below lots of nodes have >5000min uptime!! great... As I had to shutdown and work on the server it seems some of the nodes (quite randomly) rebooted while others survived without issues... However, for my part the current version(s) seem to be really stable!! appreciate it!! Good work!! Name / date / UPTIME |
OK, then for now, I will close it |
ok to close it, but still the fact that some units rebooted just because the server was shutdown needs further investigation, I think. |
problem is, since updating my server it seems to be fast enough so the "slow response" issue does not occur anymore ;) so I'm having troubles to test it.. |
but if you shutdown the server some units do reboot? |
And what is the reboot reason then? |
@giig1967g: yes, true, but can't be sure it's because of that I think it's a difference if the server doesn't answer at all or if it answer's opens the socket and is too slow or even doesn't respond at all... I guess these are different situations from the unit's pov... it's easier to deal with if the server is not reachable at all, than having open sockets to deal with.. |
I am asking this because I also was having serious issues that stopped when I swapped my router (from Mikrotik to Lynksys). What do you think? |
had a really strange issue today: after nearly all units ran for over 6'000Min. I updated all of them with the newst commit this morning. After that they all ran fine for about 4 hours until in the afternoon I had to fix some things on the server and shut it down for about an hour... after it restartet all units were "absent". Looking at the log (via UDP syslog or webpage) they all said "Timeout while reading input data!"... even after a (software) reboot, the problem persisted. |
These timeout patches are already present in the code for a while now. So I will close this one for now. |
As suggested by @clumsy-stefan here: #1669 (comment)
The suggested fix is based on this PR in the ESP8266 Arduino examples. (PR 5113)
I would like to know if someone who is experiencing issues with slow servers, if they see this line in the logs:
If so, please report it, so I can make the timeout setting configurable.
Later I will make the function
safeReadStringUntil
use a callback construction and let it operate async.For now the function is blocking, so it may cause all kind of issues.
The text was updated successfully, but these errors were encountered: