-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
test_ssl failure #51382
Comments
This is due to r75412 (yes, mine). The proper fix would be to add testSocketServer (test.test_ssl.ThreadedTests) ... Exception happened during processing of request from ('127.0.0.1', 48099)
Traceback (most recent call last):
File "/home/antoine/cpython/__svn__/Lib/SocketServer.py", line 282, in
_handle_request_noblock
self.process_request(request, client_address)
File "/home/antoine/cpython/__svn__/Lib/SocketServer.py", line 308, in
process_request
self.finish_request(request, client_address)
File "/home/antoine/cpython/__svn__/Lib/SocketServer.py", line 321, in
finish_request
self.RequestHandlerClass(request, client_address, self)
File "/home/antoine/cpython/__svn__/Lib/SocketServer.py", line 639, in
__init__
self.finish()
File "/home/antoine/cpython/__svn__/Lib/SocketServer.py", line 692, in
finish
self.wfile.flush()
File "/home/antoine/cpython/__svn__/Lib/socket.py", line 300, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
File "/home/antoine/cpython/__svn__/Lib/ssl.py", line 203, in sendall
v = self.send(data[count:])
File "/home/antoine/cpython/__svn__/Lib/ssl.py", line 94, in <lambda>
self.send = lambda data, flags=0: SSLSocket.send(self, data, flags)
File "/home/antoine/cpython/__svn__/Lib/ssl.py", line 174, in send
v = self._sslobj.write(data)
TypeError: must be string or read-only buffer, not memoryview
----------------------------------------
Traceback (most recent call last):
File "/home/antoine/cpython/__svn__/Lib/test/test_ssl.py", line 972,
in testSocketServer
f = urllib.urlopen(url)
File "/home/antoine/cpython/__svn__/Lib/urllib.py", line 87, in urlopen
return opener.open(url)
File "/home/antoine/cpython/__svn__/Lib/urllib.py", line 206, in open
return getattr(self, name)(url)
File "/home/antoine/cpython/__svn__/Lib/urllib.py", line 445, in
open_https
'got a bad status line', None)
IOError: ('http protocol error', 0, 'got a bad status line', None)
ERROR |
Here is a possible patch. |
Reviewed, built, tests ok. Linux trader 2.6.18-ARCH #1 SMP PREEMPT Sun Nov 19 09:14:35 CET 2006 vote +1 weight +0.1 :-) |
Is there some reason that this is not being checked |
I was hoping for Bill (the _ssl maintainer)'s opinion on this, but |
Committed in r75529. |
I am still getting this error with SocketServer in Python 2.7.2, even though it looks the same as was fixed in bpo-7133: File "/usr/local/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock Keith |
Keith, was your python compiled with ssl? Any extra information to reproduce this can help. (Download 2.7.2 from python.org, do a ./configure;make and verify if this can bug can be reproduced). |
Senthil: thanks for the reply. That's how I did build python 2.7.2 anyway. But I can't see anything about SSL in the generated config files. However, on another system (Fedora 15 with python 2.7.1), I don't get the problem. Keith |
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: