What causes EventMachine :: ConnectionNotBound?

I'm new to EventMachine, so I'm not sure what that means. I get this exception:

EventMachine::ConnectionNotBound recieved ConnectionUnbound for an unknown signature: ef93a97d4d6441cb80d30fe2313d7de73 

The program is quite complicated, so I can not explain everything that could lead to it. All I need is a pointer to what to look for. The error is not documented (see http://eventmachine.rubyforge.org/ ).

+7
ruby eventmachine
source share
3 answers

I had this exception when some other unhandled exception occurred in the initialization method of the EventMachine :: Connection subclass. Make sure that the initialization method of your subclass is correct and that the initialization method works without errors.

+8
source share

Typically, these errors occur during initialization or post_init. The first thing you need to do is add salvation inside your callbacks to find out what actually causes this error.

 def initialize(*args) ... super rescue Exception ... end def post_init ... super rescue Exception ... end 
+6
source share

I fixed the bubble exception for this case in EventMachine over a year ago. This is in the pre-release 1.0 gem ( gem install eventmachine --pre ) or better, use EventMachine from the repository.

+1
source share

All Articles