New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
httplib strict mode fails in 2.2.2 #36228
Comments
The test() function in the httplib module attempts to I don't know if this is a Python bug or an SSL bug. Here's the Python traceback. Traceback (most recent call last):
File "../Lib/httplib.py", line 895, in ?
test()
File "../Lib/httplib.py", line 884, in test
status, reason, headers = hs.getreply()
File "../Lib/httplib.py", line 734, in getreply
response = self._conn.getresponse()
File "../Lib/httplib.py", line 579, in getresponse
response = self.response_class(self.sock)
File "../Lib/httplib.py", line 99, in __init__
self.fp = sock.makefile('rb', 0)
File "../Lib/httplib.py", line 614, in makefile
buf = self.__ssl.read()
socket.sslerror: (1, 'error:1408F10B:SSL
routines:SSL3_GET_RECORD:wrong version number') And the gdb stack trace. #0 0x401e96d1 in sk_pop_free () |
Logged In: YES This looks like a duplicate of bug bpo-531616, though I |
Logged In: YES Jeremy, can this bug be closed? www.python.org is down. I I'm not sure if that's a problem or not. |
Logged In: YES I don't see the coredump either; the C code is very |
Logged In: YES This actually does its tests by communicating with various web servers (python.org, sourceforge, theopalgroup.com, yahoo.com). This doesn't seem like a very reliable way to do these tests, but it certainly does seem like a 'real-world' test. Apparently yahoo.com/promotions/mom_com97/supermom.html used to give a garbled, non-standard status line, so it was used to give an error case to strict mode. Unsurprisingly this page has gone away and the new Not Found error page is standards compliant. You can either
Option 1) is the least work and probably the best idea. If you want a patch for 1), 3), or 4) I can provide it, or someone else can do it if they want. |
Logged In: YES The test using supermom was removed on the trunk. I also |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: