In database/sql, maxBadConnRetries is hard coded but not configurable. Sometimes I do not want it to retry when connect fails, or more retry times is required.