62
62
from socket import error as socket_error
63
63
self._socket_error = socket_error
64
64
self._socket_timeout = socket_timeout
65
addrs = socket.getaddrinfo(host, port, socket.AF_UNSPEC,
65
addrs = socket.getaddrinfo(host, port, socket.AF_UNSPEC,
66
66
socket.SOCK_STREAM, 0, socket.AI_PASSIVE)[0]
68
68
(family, socktype, proto, canonname, sockaddr) = addrs