uncaught error on data listener #83

Closed
sha0coder opened this Issue Apr 12, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@sha0coder

Sometimes lines is empty and the forEach crashes:

self.conn.addListener("data", function (chunk) {
buffer += chunk;
var lines = buffer.split("\r\n");
buffer = lines.pop();
lines.forEach(function (line) {

the crash:
/home/sha0/soft/node-irc/lib/irc.js:534
throw err;
^
Error: Uncaught, unspecified 'error' event.
at Client.emit (events.js:50:15)
at Client. (/home/sha0/soft/node-irc/lib/irc.js:422:26)
at Client.emit (events.js:67:17)
at /home/sha0/soft/node-irc/lib/irc.js:531:22
at Array.forEach (native)
at Socket. (/home/sha0/soft/node-irc/lib/irc.js:528:15)
at Socket.emit (events.js:67:17)
at TCP.onread (net.js:372:31)

@martynsmith

This comment has been minimized.

Show comment Hide comment
@martynsmith

martynsmith Oct 26, 2012

Owner

Can you please provide information about what server you managed to get this error from?

I've certainly never seen it happen before.

Given this issue is 7 months old (my bad), I'm going to close it.

Please re-open if you continue to experience these issues, and can provide some steps such that I can reproduce it.

Thanks,

Martyn

Owner

martynsmith commented Oct 26, 2012

Can you please provide information about what server you managed to get this error from?

I've certainly never seen it happen before.

Given this issue is 7 months old (my bad), I'm going to close it.

Please re-open if you continue to experience these issues, and can provide some steps such that I can reproduce it.

Thanks,

Martyn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment