Bug 128727 (IT:45323)
Summary: | python httplib.HTTPSConnection not thread safe | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Brian Long <brilong> | ||||||||
Component: | python | Assignee: | Mihai Ibanescu <mihai.ibanescu> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | |||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 3.0 | CC: | jkeating, jneedle, katzj, tao | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | i386 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2004-12-22 01:51:25 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 123574 | ||||||||||
Attachments: |
|
Description
Brian Long
2004-07-28 18:48:14 UTC
Created attachment 102260 [details]
httplib.HTTPConnection script
This script works in conjunction with "nc -l -p 8080" using the HTTP protocol.
Created attachment 102261 [details]
httplib.HTTPSConnection script
This script fails in conjunction with "nc -l -p 8080". The only difference
between this script and python-http.py is the httplib.HTTPConnection was
changed to httplib.HTTPSConnection.
tao I'd be interested to see if this happens with rhnlib as well. python's stock ssl implementation is pretty useless, that's why RHN uses pyOpenSSL (binding directly to openssl). I'll modify the test case for that. I've been looking at this ticket this afternoon, and I've noticed that the "I'm still here thread" appears to block on a futex after the network thread opens it's ssl connection. In the non-ssl case, the "ISH" thread does not block on the futex. The network thread appears to be doing the same number/order of futex wakes. I'm looking for the source (and backtrace) of the futex calls.. Created attachment 104770 [details]
backport ssl thread support from python 2.3.3
The above patch corrects the hang reported in this ticket. Needs review by someone who understands phython's threading/locking mechanisims. The patch looks harmless. Thanks for submitting it, I'll build a new python package. Can you please release this RPM as an errata for RHEL 3? If possible, releasing it before Update 4 would be ideal; otherwise, please include it in Update 4. Thank you. Did this make the U4 beta? No, looks like I missed the deadline. I'll build the packages nevertheless and put them on people.redhat.com in the meantime. Packages are now available at: ftp://people.redhat.com/misa/python-fixes/mt-ssl/ The packages are signed with my GPG key, available at: http://people.redhat.com/misa/misa.gpg It was my understanding from IBM Level 3 support that this package would be in U4. Is there any chance this package can be added to the U4 beta in RHN so people can test it until U4 is GA? Brian, We are currently working with Release Engineering and QA on a plan to put this package in U4. As far as I know U4 beta is frozen, but we will see what we can do to make them widely available. In the meantime, if you can try to run the packages posted on comment #15 in one of your environments that are exhibiting the problem, that would give me a higher level of confidence that the problem is indeed fixed. Mihai, The problem is fixed with your RPM. That's why I'm hoping it shows up in U4 :) Thanks! /Brian/ Brian, it's great to hear that! Major problems raised by QA excluded, it should make it in U4. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2004-616.html *** Bug 121428 has been marked as a duplicate of this bug. *** |