"Error in detector operation" was raised whenever the wait-for-idle loop in
JFJochServices::Stop() ended in any state other than idle. For DECTRIS that
includes a single failed status request (connect/read timeout, non-200), which
GetState() silently turned into NOT_CONNECTED, and a cancel whose disarm
failed - none of them distinguishable in the log.
- DectrisDetectorWrapper::GetState() logs the failure reason before returning
NOT_CONNECTED.
- Stop() logs the state that ended the loop, whether the stop command failed,
and what the detector reports (DetectorWrapper::GetErrorDescription(); for
DECTRIS the SIMPLON state and the detector status "error" list).
- Cancel() logs why the stop command failed.
- A non-200 GET now reports the HTTP status and body (it printed "Success").
- DectrisSimplonClient keeps one keep-alive httplib::Client, serialised by a
mutex, instead of opening a new TCP connection per request.
- The wait-for-idle loop polls every 100 ms instead of every 5 ms.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>