Skip to content

Commit

Permalink
Merge pull request #550 from bstemshorn/master
Browse files Browse the repository at this point in the history
Update base_connection.py
  • Loading branch information
gmr committed Apr 29, 2015
2 parents b5d1b31 + 6637212 commit 1567ba3
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 @@ -111,7 +111,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 1567ba3

Please sign in to comment.