Skip to content

Commit

Permalink
Update base_connection.py
Browse files Browse the repository at this point in the history
fix for solaris
  • Loading branch information
bstemshorn committed Apr 20, 2015
1 parent 409670b commit 6637212
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 6637212

Please sign in to comment.