In specific situation it might be useful to give up if a reconnect is not successful or after a given number reconnect retries. This patch adds the ability to change that. The default remains the same: retry forever. Signed-off-by: Peter Lieven <pl@kamp.de>