Run the following program and ensure that nothing is running on localhost on port 4050:
require "eventmachine"
class ClientConnection < EM::Connection
def post_init
p :connected
end
def receive_data(data)
p [:received, data]
end
def unbind
p :closed
end
end
EM.run {
EM.connect("localhost", 4050, ClientConnection)
}
Notice, a connection attempt is made and fails. The program then goes into an infinite loop.
This issue affects 8b613d0, but not the previous commit, 1427a2c.