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

ConnectionError rather than RuntimeError for "no acceptor" #154

Open
ibc opened this issue Jan 9, 2011 · 0 comments
Open

ConnectionError rather than RuntimeError for "no acceptor" #154

ibc opened this issue Jan 9, 2011 · 0 comments

Comments

@ibc
Copy link
Contributor

ibc commented Jan 9, 2011

When the binding port is already in use EventMachine raises a RuntimeError:

rb_raise (rb_eRuntimeError, "no acceptor (port is in use or requires root privileges)");

IMHO it would be better if it raises a EM::ConnectionError (easier to rescue or warn the user about the problem).

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

1 participant