urllib.urlopen patch causes reading beyond last byte of https responses to take unreasonably long

Bug #853908 reported by James Aylett
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
m2crypto (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Importing M2Crypto patches `urllib.urlopen` to "better" support https (possibly a hangover from when urllib didn't support it at all?). The version in natty does not correctly process the end of the response, and takes approximately 300 seconds to return.

Example:

import urllib
d = urllib.urlopen("https://www.google.com/").read() # returns almost at once
from M2Crypto import SSL
d = urllib.urlopen("https://www.google.com/").read() # returns about 300 seconds later

These should be equivalent.

user@ubuntu:~/projects/world$ lsb_release -rd
Description: Ubuntu 11.04
Release: 11.04
user@ubuntu:~/projects/world$ apt-cache policy python-m2crypto
python-m2crypto:
  Installed: 0.20.1-1ubuntu5
  Candidate: 0.20.1-1ubuntu5
  Version table:
 *** 0.20.1-1ubuntu5 0
        500 http://gb.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

Marking as confirmed. Thank you for the example code.

Changed in m2crypto (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

Confirmed for Oneiric as well.

Changed in m2crypto (Ubuntu):
milestone: none → ubuntu-11.10
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.