Public bug reported:

Hello, I'm getting the follow exception while trying to run the
SimpleSecureHTTPServer example from
http://code.activestate.com/recipes/442473/ and hitting the server once.

Exception happened during processing of request from ('127.0.0.1', 36615)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 284, in 
_handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 639, in __init__
    self.handle()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 343, in handle
    self.handle_one_request()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 313, in handle_one_request
    self.raw_requestline = self.rfile.readline(65537)
  File "/usr/lib/python2.7/socket.py", line 476, in readline
    data = self._sock.recv(self._rbufsize)
Error: [('SSL routines', 'SSL3_READ_BYTES', 'tlsv1 alert unknown ca'), ('SSL 
routines', 'SSL23_READ', 'ssl handshake failure')]
----------------------------------------
Traceback (most recent call last):
  File "SimpleSecureHTTPServer.py", line 48, in <module>
    test()
  File "SimpleSecureHTTPServer.py", line 44, in test
    httpd.serve_forever()
  File "/usr/lib/python2.7/SocketServer.py", line 227, in serve_forever
    self._handle_request_noblock()
  File "/usr/lib/python2.7/SocketServer.py", line 287, in 
_handle_request_noblock
    self.shutdown_request(request)
  File "/usr/lib/python2.7/SocketServer.py", line 459, in shutdown_request
    request.shutdown(socket.SHUT_WR)
TypeError: shutdown() takes exactly 0 arguments (1 given)

Here are my system information:

Ubuntu version:
Description:    Ubuntu 11.04
Release:        11.04

openssl:
  Installed: 0.9.8o-5ubuntu1
  Candidate: 0.9.8o-5ubuntu1
  Version table:
 *** 0.9.8o-5ubuntu1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status

python-openssl:
  Installed: 0.10-1ubuntu3
  Candidate: 0.10-1ubuntu3
  Version table:
 *** 0.10-1ubuntu3 0
        500 http://ca.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status

python:
  Installed: 2.7.1-0ubuntu5
  Candidate: 2.7.1-0ubuntu5
  Version table:
 *** 2.7.1-0ubuntu5 0
        500 http://ca.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status

python-dev:
  Installed: 2.7.1-0ubuntu5
  Candidate: 2.7.1-0ubuntu5
  Version table:
 *** 2.7.1-0ubuntu5 0
        500 http://ca.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status

I've also tried it with using pyOpenSSL 0.12 with "pip install
pyOpenSSL==0.12" in a virtualenv and I got the same error. I believe the
package I currently have are the latest stable ones for natty.

This is most likely related to
https://bugs.launchpad.net/pyopenssl/+bug/686804 .

I expected not to have this exception when I hit this secure HTTP server
with a browser.

** Affects: pyopenssl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/821984

Title:
  Exception on request.shutdown with SimpleSecureHTTPServer

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyopenssl/+bug/821984/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to