Closed PierreRustOrange closed 2 years ago
I had a quick look at this issue but actually I can't fond whats causing the sensor to stop when the socket is closed at the server side : In reporting_actor
, errors when writing out reports seems to be silently ignored and I don't see any code reacting to connection loss.
Obviously I'm missing something here, any idea on where I should look ?
Thanks !
I've finally found the root cause, when writing to the closed socket we get an EPIPE signal which not handled and stops the sensor. We should probably ignore this signal and handle the error manually by reconnecting the socket.
Test scenario:
The following command were used when testing:
Sensor:
BTW, the sensor in the latest docker image does not returns its own version :
I: 21-10-26 15:28:23 build: version undefined (rev: undefined) (Sep 28 2021 - 14:40:24)
Formula:
version: today's pull on master.
configuration file: