We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7909f3f + 5da1ccb commit 67f38e4Copy full SHA for 67f38e4
index.js
@@ -191,7 +191,7 @@ module.exports = (params) => {
191
client.destroy() // destroy connection on timeout
192
resetClient() // reset the client
193
reject(err) // reject the promise with the error
194
- } else if (err && (/^PROTOCOL_ENQUEUE_AFTER_/.test(err.code) || err.code === 'PROTOCOL_CONNECTION_LOST')) {
+ } else if (err && (/^PROTOCOL_ENQUEUE_AFTER_/.test(err.code) || err.code === 'PROTOCOL_CONNECTION_LOST' || err.code === 'EPIPE')) {
195
196
return resolve(query(...args)) // attempt the query again
197
} else if (err) {
0 commit comments