Excessive reconnects issue resolution

Fixes #868
just to make sure I understand. if the socket is using something like TCP (connection oriented), and the connection is lost, these two lines will set a reconnection attempt random interval between 2-16 seconds.