Skip to content

Instantly share code, notes, and snippets.

@peterli888
Last active March 8, 2016 07:20
Show Gist options
  • Save peterli888/5e0cd679ed6ae52b4f4d to your computer and use it in GitHub Desktop.
Save peterli888/5e0cd679ed6ae52b4f4d to your computer and use it in GitHub Desktop.
node-postgresql error
1.Connection.prototype.attachListeners 里面 self.emit(msg.name, msg); 应该try {}catch(e){} 包起来
2.Client.prototype.connect 里面 con.on('error', function(error) -> return self.emit('error', error); 不能 return
3.这两个地方可以在任意一个地方try 或者 process.on('uncaughtException', function(err){}),否则 连上又断的时候导致process crash
4.client.on('error',,,
client.connect(function(){}) 可能导致on的error收不到
5.DeAsync.js 对 seneca.http可行 对 seneca.tcp不行 可能原因是tcp的pipe代理等的问题
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment