A bug of httplib?

G

gcn

Hello,

The HTTPSConnection class in httplib overload the connect method of
HTTPConnection, but it can only deals with IPv4:

def connect(self):
"Connect to a host on a given (SSL) port."

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((self.host, self.port))
ssl = socket.ssl(self.sock, self.key_file, self.cert_file)
self.sock = FakeSocket(self.sock, ssl)

Is it a bug or I should use other method?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top