Proper ECONNRESET handling for global connection
baoshan opened this issue · comments
Baoshan Sheng commented
Hi,
sql = require 'co-mssql`
yield sql.connect config
sql.on 'error', (err) -> console.error err
Prompts: sql.on
is not a function (undefined
actually).
The app occasionally crashes due to
events.js:141
throw er; // Unhandled 'error' event
^
ConnectionError: Connection lost - read ECONNRESET
Please advise, thanks.
Patrik Simek commented
Fixed in 1.2.1. Just update your co-mssql.
Baoshan Sheng commented
Cool! Have a nice day~