INDI Base Client occasionally failing connection
Frequently the INDI base client receives a message for a device that it has not finished instanciation of.
23: QINFO : TestEkosGuide::testPHD2CaptureStability() org.kde.kstars.ekos: "Starting INDI services..."
23: QINFO : TestEkosGuide::testPHD2CaptureStability() org.kde.kstars.ekos: "INDI services started on port 7624."
23: QINFO : TestEkosGuide::testPHD2CaptureStability() org.kde.kstars.ekos: Ekos received a new device: "Telescope Simulator"
23: QINFO : TestEkosGuide::testPHD2CaptureStability() org.kde.kstars.ekos: Ekos received a new device: "CCD Simulator"
23: Dispatch command error(-1): Device CCD Simulator not found
23: <setTextVector device="CCD Simulator" name="DRIVER_INFO" state="Idle" timeout="60" timestamp="2021-04-12T19:30:25">
23: <oneText name="DRIVER_NAME">
23: CCD Simulator
23: </oneText>
23: <oneText name="DRIVER_EXEC">
23: indi_simulator_ccd
23: </oneText>
23: <oneText name="DRIVER_VERSION">
23: 1.0
23: </oneText>
23: <oneText name="DRIVER_INTERFACE">
23: 6
23: </oneText>
23: </setTextVector>
23: Dispatch command error(-1): Device CCD Simulator not found
23: <setTextVector device="CCD Simulator" name="DRIVER_INFO" state="Idle" timeout="60" timestamp="2021-04-12T19:30:25">
23: <oneText name="DRIVER_NAME">
23: CCD Simulator
23: </oneText>
23: <oneText name="DRIVER_EXEC">
23: indi_simulator_ccd
23: </oneText>
23: <oneText name="DRIVER_VERSION">
23: 1.0
23: </oneText>
23: <oneText name="DRIVER_INTERFACE">
23: 6
23: </oneText>
23: </setTextVector>
23: QINFO : TestEkosGuide::testPHD2CaptureStability() org.kde.kstars.ekos: Ekos received a new device: "Focuser Simulator"
23: INDI server localhost/7624 disconnected.
There is some kind of race condition appearing between the message that is supposed to create the device and the subsequent message that is to be managed by said device. As illustrated in the log above, this sometimes causes the server connection to terminate unexpectedly, and apparently Ekos is not able to handle the situation and reconnect neither.
Tested with KStars git 8dccdbcc / INDI git 605180db