Skip to content

Commit

Permalink
Merge 6637212 into 409670b
Browse files Browse the repository at this point in the history
  • Loading branch information
bstemshorn committed Apr 20, 2015
2 parents 409670b + 6637212 commit f8a2713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pika/adapters/base_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _adapter_connect(self):
"""
# Get the addresses for the socket, supporting IPv4 & IPv6
try:
addresses = socket.getaddrinfo(self.params.host, self.params.port)
addresses = socket.getaddrinfo(self.params.host, self.params.port, 0, socket.SOCK_STREAM)
except socket.error as error:
LOGGER.critical('Could not get addresses to use: %s (%s)',
error, self.params.host)
Expand Down

0 comments on commit f8a2713

Please sign in to comment.