We are checking whether the DB connection is alive once every 30 seconds. But when we are lacking the last check time, we are skipping the check and reconnect logic. This is causing the reconnect logic to never fire in those cases. It seems to me that "those cases", are actually always the case, as upon initialization, we are not using the proper connection name to store the time. In the `connect()` logic, when `$this->_conn` is null, `$this->getConnectionName()` is returning `replica`, so `$this->lastConnectionCheck` will be equal to `['replica' => time()];` |
||
|---|---|---|
| .. | ||
| Exceptions | ||
| QueryBuilder | ||
| Adapter.php | ||
| AdapterMySQL.php | ||
| AdapterOCI8.php | ||
| AdapterPgSql.php | ||
| AdapterSqlite.php | ||
| BacktraceDebugStack.php | ||
| Connection.php | ||
| ConnectionAdapter.php | ||
| ConnectionFactory.php | ||
| DbDataCollector.php | ||
| MigrationException.php | ||
| MigrationService.php | ||
| Migrator.php | ||
| MigratorExecuteSqlEvent.php | ||
| MissingColumnInformation.php | ||
| MissingIndexInformation.php | ||
| MissingPrimaryKeyInformation.php | ||
| MySqlTools.php | ||
| OCSqlitePlatform.php | ||
| ObjectParameter.php | ||
| OracleConnection.php | ||
| OracleMigrator.php | ||
| PgSqlTools.php | ||
| PreparedStatement.php | ||
| ResultAdapter.php | ||
| SQLiteMigrator.php | ||
| SQLiteSessionInit.php | ||
| SchemaWrapper.php | ||
| SetTransactionIsolationLevel.php | ||