http://ift.tt/1YXSGWy line 6 of plus_one_test.js I use setTimeout to start a timer, which kills the process in 5 seconds, but I get an ugly error. I'm still trying to figure out proper error handling, and I'm still a bit uncomfortable with Async.How do you recommend I write this code to stop the execution in 5 seconds?I run node plus_one_test.js to start the program.The error:events.js:141 throw er; // Unhandled 'error' event ^Error: This socket has been ended by the other party at Socket.writeAfterFIN [as write] (net.js:268:12) at null._repeat (/Users/johncurry/Development/javascript/node/8chap/plus_one_test.js:13:17) at wrapper [as _onTimeout] (timers.js:275:19) at Timer.listOnTimeout (timers.js:92:15)
Submitted January 03, 2016 at 03:53AM by fastpenguin91
No comments:
Post a Comment