mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
d0ad1e684e
On server timeouts, it's possible for multiple minutes to elapse between receiving the last pong on the old connection and attempting to send the next ping on the new connection. If that time span exceeded 5 minutes, the binding went into a minutely reconnection loop, because it never attempted to send a ping anymore, which led to lastPong not being updated anymore. To fix this, replace the timing dependent timestamp handling by a simple counter which counts how many consecutive ping attempts didn't receive an answer, and closing the connection after 5 unsuccessful ping attempts. That new counter is now also reset whenever the connection is restarted. Fixes #14188 Signed-off-by: Danny Baumann <dannybaumann@web.de> |
||
---|---|---|
.. | ||
main | ||
test |