Skip to content

Commit

Permalink
Merge pull request #24 from jeremydaly/v1.3.0
Browse files Browse the repository at this point in the history
v1.3.0
  • Loading branch information
jeremydaly authored Apr 24, 2019
2 parents 03a466c + 09954ac commit 66c643f
Show file tree
Hide file tree
Showing 3 changed files with 1,096 additions and 1,177 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ const tooManyConnsErrors = [
'ER_USER_LIMIT_REACHED',
'ER_OUT_OF_RESOURCES',
'ER_CON_COUNT_ERROR',
'PROTOCOL_CONNECTION_LOST' // if the connection is lost
'PROTOCOL_CONNECTION_LOST', // if the connection is lost
'ETIMEDOUT' // if the connection times out
]

// Init setting values
Expand Down Expand Up @@ -269,7 +270,7 @@ const killZombieConnections = async (timeout) => {
[!isNaN(timeout) ? timeout : 60*15, _cfg.user])

// Kill zombies
for (let i in zombies) {
for (let i = 0; i < zombies.length; i++) {
try {
await query('KILL ?',zombies[i].ID)
onKill(zombies[i]) // fire onKill event
Expand Down
Loading

0 comments on commit 66c643f

Please sign in to comment.