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

Handle server connection failures gracefully #74

Closed
akavlie opened this issue Nov 29, 2011 · 6 comments
Closed

Handle server connection failures gracefully #74

akavlie opened this issue Nov 29, 2011 · 6 comments

Comments

@akavlie
Copy link
Contributor

akavlie commented Nov 29, 2011

When an invalid server name is passed to node-irc, my app crashes as follows:

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: ETIMEDOUT, Operation timed out
    at Socket._onConnect (net.js:601:18)
    at IOWatcher.onWritable [as callback] (net.js:186:12)
@akavlie
Copy link
Contributor Author

akavlie commented Nov 29, 2011

Sometimes, the error is as follows:

events.js:45
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: ENOTFOUND, Domain name not found
    at IOWatcher.callback (dns.js:74:15)

@bpaf
Copy link

bpaf commented Jan 13, 2012

I stumbled upon a third kind: see issue #76

@akavlie
Copy link
Contributor Author

akavlie commented Jan 13, 2012

Is this still happening after my pull request? Are you using the github master branch, or release 0.3.3?

@bpaf
Copy link

bpaf commented Jan 13, 2012

I'm using the current npm release which is indeed 0.3.3. As you can imagine, this connection issue is quite painful to test, I will do my best to try tho.

@akavlie
Copy link
Contributor Author

akavlie commented Jan 13, 2012

Yeah, I submitted some code which has been merged in on github, but hasn't yet been released on npm. Try out the latest rev in the master branch and see if that works.

@martynsmith
Copy link
Owner

I'm not sure if this is resolved or not. But since there hasn't been any activity for a very long time, I'm going to close this issue.

If anyone still experiences problems with it, feel free to re-open, or create a new issue.

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

3 participants