Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What causes EventMachine::ConnectionNotBound?

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

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

The program is fairly complicated, so I can't really explain everything that might have led up to it. All I need is a pointer towards what to look for. The error doesn't seem to be documented (looking at http://eventmachine.rubyforge.org/).

like image 558
Peeja Avatar asked Jul 14 '09 15:07

Peeja


2 Answers

I have had this exception raised when some other unhandled exception was raised in the initialize method of a subclass of EventMachine::Connection. Check that the arity of your subclass initialize method is correct and that the initialize method is running without errors.

like image 108
Troy Stribling Avatar answered Sep 20 '22 13:09

Troy Stribling


Usually, those errors occur in initialize or post_init. The first thing you should do is add rescue inside your callbacks to find out what actually is causing that error.

def initialize(*args)
  ...
  super
rescue Exception
  ...
end

def post_init
  ...
  super
rescue Exception
  ...
end
like image 27
kenn Avatar answered Sep 23 '22 13:09

kenn