New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No timeout when connecting to database #832

Closed
dbrgn opened this Issue Mar 30, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@dbrgn
Contributor

dbrgn commented Mar 30, 2017

It seems that PgConnection::establish(..) never times out when using it with a non-existing database, is that intended?

A (configurable) timeout would probably be needed here.

@sgrif

This comment has been minimized.

Member

sgrif commented Mar 30, 2017

You can specify the timeout in the connection URL. https://www.postgresql.org/docs/9.4/static/libpq-connect.html#LIBPQ-CONNSTRING

@sgrif sgrif closed this Mar 30, 2017

@dbrgn

This comment has been minimized.

Contributor

dbrgn commented Mar 30, 2017

Thanks, I wasn't aware of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment