Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…#issuecomment-1736359090>, added connection pool closed error check
  • Loading branch information
titanism committed Sep 26, 2023
1 parent 4d9d57c commit 748b213
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ecosystem-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"exec_mode": "cluster",
"wait_ready": true,
"instances": "max",
"pmx": false,
"env_production": {
"NODE_ENV": "production"
}
Expand All @@ -16,6 +17,7 @@
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"pmx": false,
"env_production": {
"NODE_ENV": "production"
}
Expand Down
1 change: 1 addition & 0 deletions ecosystem-bree.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"pmx": false,
"env_production": {
"NODE_ENV": "production"
}
Expand Down
3 changes: 3 additions & 0 deletions ecosystem-smtp.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"exec_mode": "cluster",
"wait_ready": true,
"instances": "max",
"pmx": false,
"env_production": {
"NODE_ENV": "production",
"SMTP_PORT": 2587
Expand All @@ -17,6 +18,7 @@
"exec_mode": "cluster",
"wait_ready": true,
"instances": "max",
"pmx": false,
"env_production": {
"NODE_ENV": "production",
"SMTP_PORT": 2465
Expand All @@ -28,6 +30,7 @@
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"pmx": false,
"env_production": {
"NODE_ENV": "production"
}
Expand Down
2 changes: 2 additions & 0 deletions ecosystem-web.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"exec_mode": "cluster",
"wait_ready": true,
"instances": "max",
"pmx": false,
"env_production": {
"NODE_ENV": "production"
}
Expand All @@ -16,6 +17,7 @@
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"pmx": false,
"env_production": {
"NODE_ENV": "production"
}
Expand Down
1 change: 1 addition & 0 deletions helpers/is-socket-error.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
function isSocketError(err) {
return Boolean(
err.message === 'Connection closed' ||
err.message === 'Connection pool was closed' ||
err.message === 'Connection closed unexpectedly' ||
err.message === 'Socket closed unexpectedly' ||
err.message === 'Unexpected socket close' ||
Expand Down

0 comments on commit 748b213

Please sign in to comment.