Allows RemoteFile to recover from connection drop or timeout

From time to time, for some users reading from the controlSocket times out, which cause the connection to be dropped. This change allows to recover from this situation

Ref #12113

(cherry picked from commit ad1361a7e82770bfbb7f23fb297f9be8c9e941b2)
Reset failures count once a read succeed

The failure counter was for the entire playback’s duration. So should more than 5 read failures occurred, regardless of time, playback would have been interrupted.
As soon as a read succeed, reset the failure count to 0.

Ref #12113

(cherry picked from commit 305b409bf7c66287618bb74d5da2689906fc3830)
Don’t prevent read should we reached EOF or an error

Prevented to play the last few seconds of a recording.

(cherry picked from commit 904b65bdab15796b3b43102ef1bc0ab3215a2634)