Skip to content
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

Implement future for the DataSource.getConnection() #13

Open
sssinghsyr opened this issue Jun 13, 2018 · 1 comment
Open

Implement future for the DataSource.getConnection() #13

sssinghsyr opened this issue Jun 13, 2018 · 1 comment

Comments

@sssinghsyr
Copy link

DataSource.getConnection() submit a new submission to connect with the Database Server. If any connection-exception is reported for e.g. "password authentication failed for user -"; there is no design to report this exception to the calling thread.

I can see, PGConnection.attachErrorHandler() implementation. Is this for the same purpose?

If such connection exceptions are thrown, we need to close the connection and report exception to all the attached submissions to that connection.

Please correct me if I am wrong in my understanding!

@alexanderkjall
Copy link
Collaborator

alexanderkjall commented Jun 13, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants