Recover from StompConnectionError (Broken pipe)
Reported by @wright Ping @demariaa
NSCOPE [363]: SCAN_SAVING.icat_register_datasets()
!!! === StompConnectionError: Could not send to connection [[Errno 32] Broken pipe] === !!! ( for more details type cmd 'last_error' )
NSCOPE [363]: last_error
Out [363]: 03/03/2023 11:25:01 Traceback (most recent call last):
File "/users/blissadm/conda/miniconda/envs/bliss_dev/lib/python3.7/site-packages/stompest/sync/transport.py", line 97, in _write
self._socket.sendall(data)
...
self._write(binaryType(frame))
File "/users/blissadm/conda/miniconda/envs/bliss_dev/lib/python3.7/site-packages/stompest/sync/transport.py", line 99, in _write
raise StompConnectionError('Could not send to connection [%s]' % e)
stompest.error.StompConnectionError: Could not send to connection [[Errno 32] Broken pipe]
Restarting the session works but it should re-initialize the connection at least once whenever the user tries.