diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-11-10 14:26:20 +0100 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-11-11 13:12:45 +0100 |
commit | e549bd819ead5e66b3b0f86592b41399c62460eb (patch) | |
tree | 7d933ce5ef527ffcdbf9b3403ed192c5b448ae85 /tests/units/test_0003_shellrun.py | |
parent | cc0d98786dbeefb944032ad4afc7bb65ebb074bc (diff) |
#1056 stop thread if connection with server is lost
Abort command if the connection with the server is lost.
Otherwise, a race condition that leaves ogServer and ogClient
out-of-sync might occur:
1. ogClient is busy running a command (on the worker thread), for example,
image/restore.
2. ogServer is stopped OR ogClient loses connection with ogServer (due to
transient network problem).
3. ogClient reconnects and ogServer sends a refresh command.
4. ogClient worker thread finishes and it sends a reply to image/restore.
5. ogServer gets confused because it expects a reply to the refresh
command, not the old image/restore.
Diffstat (limited to 'tests/units/test_0003_shellrun.py')
0 files changed, 0 insertions, 0 deletions