openhab / openhab-cloud

Cloud companion for openHAB instances
Eclipse Public License 2.0
314 stars 162 forks source link

lock timeout tweak #425

Closed digitaldan closed 1 year ago

digitaldan commented 1 year ago

socket.io by default uses a 25 second ping and 20 second timeout, so 45 seconds. 60 seconds gives us that plus a little buffer before redis expires a key. This should only be used if something goes wrong on the server and the socket.io keepalive functionality fails, as a socket.io timeout will clear the redis key before the expire happens.

Signed-off-by: Dan Cunningham dan@digitaldan.com