python ssl module sets "debug" flag on SSL struct

Bug #598536 reported by Evan Broder
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Python
Fix Released
Unknown
python2.3 (Ubuntu)
Invalid
Undecided
Unassigned
Declined for Hardy by Matthias Klose
Declined for Jaunty by Matthias Klose
Declined for Karmic by Matthias Klose
Dapper
Invalid
Undecided
Unassigned
Lucid
Won't Fix
Undecided
Unassigned
python2.4 (Ubuntu)
Invalid
Undecided
Unassigned
Declined for Hardy by Matthias Klose
Declined for Jaunty by Matthias Klose
Declined for Karmic by Matthias Klose
Dapper
Invalid
Undecided
Unassigned
Lucid
Won't Fix
Undecided
Unassigned
python2.5 (Ubuntu)
Invalid
Undecided
Unassigned
Declined for Hardy by Matthias Klose
Declined for Jaunty by Matthias Klose
Declined for Karmic by Matthias Klose
Dapper
Invalid
Undecided
Unassigned
Lucid
Won't Fix
Undecided
Unassigned
python2.6 (Ubuntu)
Fix Released
Undecided
Unassigned
Declined for Hardy by Matthias Klose
Declined for Jaunty by Matthias Klose
Declined for Karmic by Matthias Klose
Dapper
Invalid
Undecided
Unassigned
Lucid
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: python2.6

Taken from the upstream Python bug:

  The ssl module sets a "debug" flag on the OpenSSL SSL struct at the end of PySSL_SSLdo_handshake():

      self->ssl->debug = 1;

  The OpenSSL header files have this to say about this flag:

          /* set this flag to 1 and a sleep(1) is put into all SSL_read()
           * and SSL_write() calls, good for nbio debuging :-) */
          int debug;

In addition to fixing this in Maverick, this seems like a substantial enough performance impact and a trivial enough fix to be worth backporting as an SRU.

Evan Broder (broder)
Changed in python2.5 (Ubuntu Dapper):
status: New → Invalid
Changed in python2.6 (Ubuntu Dapper):
status: New → Invalid
Changed in python2.4 (Ubuntu):
status: New → Invalid
Changed in python2.5 (Ubuntu):
status: New → Invalid
Changed in python2.3 (Ubuntu):
status: New → Invalid
Revision history for this message
Evan Broder (broder) wrote :

Here is the hilariously simple patch to Python 2.6. It backports trivially; I'll work on debdiffs in a moment.

tags: added: patch
Adam Guthrie (therigu)
tags: added: patch-accepted-upstream
Changed in python:
status: Unknown → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

fixed in maverick

Changed in python2.6 (Ubuntu):
status: New → Fix Released
Revision history for this message
JC Hulce (soaringsky) wrote :

Thank you for reporting this bug to Ubuntu. The version of Ubuntu referenced in this issue has reached end of life, and the issue is fixed in newer versions of Ubuntu.
Please see this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

Changed in python2.3 (Ubuntu Dapper):
status: New → Invalid
Changed in python2.4 (Ubuntu Dapper):
status: New → Invalid
Revision history for this message
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in python2.3 (Ubuntu Lucid):
status: New → Won't Fix
Changed in python2.4 (Ubuntu Lucid):
status: New → Won't Fix
Changed in python2.5 (Ubuntu Lucid):
status: New → Won't Fix
Changed in python2.6 (Ubuntu Lucid):
status: New → Won't Fix
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.