Merge lp:~cjwatson/launchpad/timeout-with-requests into lp:launchpad
Proposed by
Colin Watson
on 2015-03-11
| Status: | Merged |
|---|---|
| Merged at revision: | 18001 |
| Proposed branch: | lp:~cjwatson/launchpad/timeout-with-requests |
| Merge into: | lp:launchpad |
| Diff against target: |
490 lines (+174/-75) 7 files modified
lib/lp/app/browser/root.py (+5/-4) lib/lp/services/googlesearch/__init__.py (+9/-7) lib/lp/services/googlesearch/doc/google-searchservice.txt (+8/-0) lib/lp/services/googlesearch/tests/test_google.py (+9/-8) lib/lp/services/gpg/handler.py (+6/-7) lib/lp/services/tests/test_timeout.py (+23/-14) lib/lp/services/timeout.py (+114/-35) |
| To merge this branch: | bzr merge lp:~cjwatson/launchpad/timeout-with-requests |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| William Grant | code | 2015-03-11 | Approve on 2016-03-23 |
|
Review via email:
|
|||
Commit Message
Convert lp.services.timeout to use requests rather than urllib2.
Description of the Change
Convert lp.services.timeout to use requests rather than urllib2.
This is far more difficult than it ought to be: ideally none of this Cleanable* edifice would be needed in the first place, and requests/urllib3 makes us dig through several layers to get to the actual socket. There seems to be no reasonable way to implement this without reimplementing a couple of methods from requests, so this has to be checked when we upgrade to new versions.
To post a comment you must log in.
review:
Approve
(code)

You disable trust_env, but AFAIK we rely on squid.internal for accessing Google and blog.launchpad.net.