This project is archived and is in readonly mode.
Connection Pool always resets the connection
-
Will Bryant
As I understand it this is by design - we want the reusable connection to start off in the same state each time.
Where are you setting your extra connection settings at the moment?
I ask because most obvious places I can think of would only initialise the connection settings for the first connection the app has; but it can reconnect at any time (eg. if the db server has dropped the connection due to inactivity). Do we need some kind of after_connection callback that could be used to set up project-specific goodness?
-
Pratik
- Assigned user set to Pratik
- State changed from new to invalid
You should be using Connection's checkout callback. Does that solve the problem ?