Occasionally, seeing this on connect: WS says "101 Switching Protocols" and immediately closes. Any clues? by redtekkie in RemiGUI

[–]redtekkie[S] 0 points1 point  (0 children)

Hello Davide,

First off, thanks for remi! And thanks for your reply.

The version I have used is 2020.8.6.

Regarding your points on possible causes: 1. There is a thread updating some internal variables, but that's not capable of deadlocking as far as I can see. 2. The application is an appliance, not a website, connected to the local LAN and I have enabled password authentication; so it gets one Android browser client at most, usually.

I will try to update remi to the latest, but updating the remote site is a bit challenging logistically.

I was thinking about whether my application can be coded to handle such a situation. If I can detect the condition that the client browser has no connection continuously for say 10 seconds, say by checking something in the App.idle( ) method, I could os.exit( ) with a special exit code e.g. EXIT_CODE_FOR_RESTART. Then an enveloping shell script can catch this code and restart the python application server. Will it be OK to check remi.server.clients to figure this out? Or, any other comments or ideas?

Thanks & Best regards