Allows to define 0 reconnections

I changed the constructor condition to accept 0 max_connect_retries, so any retry will be done; I also changed the counter to manage 0 retries accordingly and treat any negative number as infinite retries.