class EventMachine::Connection

def error?

Returns:
  • (Boolean) - true if the connection is in an error state, false otherwise
def error?
  errno = EventMachine::report_connection_error_status(@signature)
  case errno
  when 0
    false
  when -1
    true
  else
    EventMachine::ERRNOS[errno]
  end
end