Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
connect_timeout is not obeyed for sslmode=allow|prefer
connect_timeout given in conn string was not obeyed if sslmode is not specified or equals sslmode=allow|prefer. It took twice the amount of time specified by connect_timeout in conn string. While this behavior is correct if multi-host is provided in conn string, it doesn't look correct in case of single host. This behavior was also not matching with libpq. Ref: [1672](jackc/pgx#1672)
- Loading branch information