refs #5368 Added new code errors to retry conn
gitea/printnatura/pipeline/head This commit looks good
Details
gitea/printnatura/pipeline/head This commit looks good
Details
This commit is contained in:
parent
ba7c29a36a
commit
3d3b4397a5
|
@ -101,7 +101,7 @@ class PrintServer {
|
|||
this.errorHandler(err);
|
||||
}
|
||||
errorHandler(err) {
|
||||
if (err.code === 'ETIMEDOUT') {
|
||||
if (['ETIMEDOUT', 'ECONNRESET', 'PROTOCOL_CONNECTION_LOST'].includes(err.code)) {
|
||||
if (!this.dbDown) {
|
||||
this.dbDown = true;
|
||||
this.serverLog('error', `DB connection lost: ${err.message}`);
|
||||
|
|
Loading…
Reference in New Issue