Last active
March 8, 2016 07:20
-
-
Save peterli888/5e0cd679ed6ae52b4f4d to your computer and use it in GitHub Desktop.
node-postgresql error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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