changed the behavior of the maximum number of failed reconnection:

Now is the maximum number of reconnections since the last message received.
Merge pull request #44 from mazzimo/integration

changed the behavior of the maximum number of failed reconnection: