9b1c4facc2
If you throw an exception in a query callback the client will not pulse its internal query queue and therefor will never process any more queries or emit its own 'drain' event. I don't find this to be an issue in production code since I restart the process on exceptions, but it can break tests and cause things to 'hang'. My crude benchmarks show no noticable impact in perf from the try/catch/rethrow. :q |
||
---|---|---|
.. | ||
client | ||
connection | ||
connection-pool | ||
gh-issues | ||
test-helper.js |