Public bug reported:

Binary package hint: python-httplib2

There is a bug (probably copy/paste error) in
HTTPSConnectionWithTimeout.connect method of python httplib2 module

Package python-httplib2, version 0.4.0-0ubuntu2
Release Ubuntu 9.04

Around line 749: of file /var/lib/python-support/python2.6/httplib2/__init__.py
Instead of:
        if self.proxy_info and self.proxy_info.isgood():
            self.sock.setproxy(*self.proxy_info.astuple())
            sock.setproxy(*self.proxy_info.astuple())
        else:
Should be:
        if self.proxy_info and self.proxy_info.isgood():
            sock = socks.socksocket(socket.AF_INET, socket.SOCK_STREAM)
            sock.setproxy(*self.proxy_info.astuple())
        else:
As a result in such a situation:
 p=httplib2.ProxyInfo(socks.PROXY_TYPE_HTTP,'proxy_host',proxy_port) 
 h=httplib2.HTTPSConnectionWithTimeout('some_host',proxy_info=p)
 h.connect()
exception occurs.

I have already submitted this error to httplib2 support.

** Affects: python-httplib2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
python-httplib2 cannot make https connection via http proxy
https://bugs.launchpad.net/bugs/373589
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to