patriksimek / co-mssql

node-mssql thunk wrappers for "co"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proper ECONNRESET handling for global connection

baoshan opened this issue · comments

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.

Fixed in 1.2.1. Just update your co-mssql.

Cool! Have a nice day~