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

set reaper limit #74

Closed
wants to merge 2 commits into from
Closed

set reaper limit #74

wants to merge 2 commits into from

Conversation

wmonk
Copy link

@wmonk wmonk commented Mar 18, 2019

No description provided.

@@ -60,7 +60,7 @@ where
error_handler: Box::new(LoggingErrorHandler),
connection_customizer: Box::new(NopConnectionCustomizer),
thread_pool: None,
reaper_rate: Duration::from_secs(30),
reaper_rate: Duration::from_secs(1),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

@@ -451,7 +452,8 @@ where

fn put_back(&self, mut conn: Conn<M::Connection>) {
// This is specified to be fast, but call it before locking anyways
let broken = self.0.manager.has_broken(&mut conn.conn);
let broken = self.0.manager.has_broken(&mut conn.conn)
|| thread::panicking();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#70

@wmonk
Copy link
Author

wmonk commented Mar 18, 2019

@sfackler apologies, this was meant to be opened in our fork - passfort/r2d2.

@wmonk wmonk closed this Mar 18, 2019
@wmonk wmonk deleted the ch10396-set-reaper-limit branch March 18, 2019 13:08
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

Successfully merging this pull request may close these issues.

3 participants