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

Pool blocks when connection settings is wrong #2

Closed
s-panferov opened this issue Oct 21, 2014 · 2 comments
Closed

Pool blocks when connection settings is wrong #2

s-panferov opened this issue Oct 21, 2014 · 2 comments

Comments

@s-panferov
Copy link

I have just looked at r2d2-postgres and saw the problem:

let manager = PostgresPoolManager::new("postgres://postgres@localhost/wrong", NoSsl);
let config = r2d2::Config {
    pool_size: 5,
    test_on_check_out: true,
    ..std::default::Default::default()
};

let handler = r2d2::NoopErrorHandler;
let pool = r2d2::Pool::new(config, manager, handler).unwrap();
pool.get().unwrap(); // blocks forever
@sfackler
Copy link
Owner

Yep, it's a bummer. This and some other improvements are blocked on rust-lang/rust#17094.

@sfackler
Copy link
Owner

This has been fixed in the most recent r2d2 releases.

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