[SJS-175][BUG]: Fix for socket not reconnnecting the number of attempts as it should