-
-
Save 3rd-Eden/615009 to your computer and use it in GitHub Desktop.
Caught exception: Error: assertion error | |
[ 'Error: assertion error' | |
, ' at node.js:30:17' | |
, ' at Timer.callback (net:150:29)' | |
, ' at node.js:764:9' | |
] | |
Initializing client with transport "flashsocket" | |
Client 5877707917243242 connected | |
268 wtf.. clients internally queued. | |
Initializing client with transport "flashsocket" | |
Client 7412870274856687 connected | |
269 wtf.. clients internally queued. | |
Caught exception: Error: assertion error | |
[ 'Error: assertion error' | |
, ' at node.js:30:17' | |
, ' at Timer.callback (net:150:29)' | |
, ' at node.js:764:9' | |
] | |
Client 6639853832311928 disconnected | |
Client 9317042354959995 disconnected | |
Caught exception: Error: assertion error | |
[ 'Error: assertion error' | |
, ' at node.js:30:17' | |
, ' at Timer.callback (net:150:29)' | |
, ' at node.js:764:9' | |
] | |
Client 3484993949532509 disconnected | |
Client 5395396156236529 disconnected | |
Caught exception: Error: assertion error | |
[ 'Error: assertion error' | |
, ' at node.js:30:17' | |
, ' at Timer.callback (net:150:29)' | |
, ' at node.js:764:9' | |
] |
3rd-Eden, You wrote that solved the problem.
How exactly did you do it?
Please let me sample code "ontimeout" and please tell exactly where it needs to be set
Or tell please how to make at least a work around...
Problem is still relevant.
Please help.
How to get rid of node crashes ?
Problem is still relevant.
Please help.
Agree, would like a formal solution to this.
My apologies for the late responses, but I have just moved to a new place and didn't have that much time to check up with new messages to this conversation. The suggest location of patching would be adding it inside the Client.prototype._onConnect on both the req and req.connection
Also @ skillcoder to get rid of node crashes you should add a global exception handler.. Using:
process.addListener( "uncaughtException", function captureException( err ){ console.log('Error occurred, prevented Node.js crash: '); console.dir( err ); });
Do I understand correctly you need to edit the file
./Socket.IO-node/lib/socket.io/client.js
on the client side so as not to fall a server?
Hi,
You need to edit the Client.prototype._onConnect
in ./Socket.IO-node/lib/socket.io/client.js
. I have also pushed the changes to my companies github repo and highlighted the position of the changes.
( Note: this is on socket.io 0.6.15 )
https://github.com/Hotelsnl/Socket.IO-node/blob/63624e5996b2719bb08f38a8af143c2019617da3/lib/socket.io/client.js#L63-103
Havent seen that one yet