Skip to content

Infinite loop when connecting without response #441

@danielwaterworth

Description

@danielwaterworth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions