Limit number of times a connection will be attempted