Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uncaught error on data listener #83

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

uncaught error on data listener #83

sha0coder opened this issue Apr 12, 2012 · 1 comment

Comments

@sha0coder
Copy link

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
Copy link
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants