in lib/elastic/transport/transport/connections/connection.rb [144:150]
def ==(other)
self.host[:protocol] == other.host[:protocol] && \
self.host[:host] == other.host[:host] && \
self.host[:port].to_i == other.host[:port].to_i && \
self.host[:attributes] == other.host[:attributes]
end