[Bug 900792] Re: Python 2.7 SocketServer socket shutdown is incompatible with pyOpenSSL

Mark Stillwell marklee at fortawesome.org
Wed Nov 19 12:21:30 UTC 2014


Has there been any attempt to resolve this bug in 2014? It's still
causing problems.

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

Title:
  Python 2.7 SocketServer socket shutdown is incompatible with pyOpenSSL

Status in pyOpenSSL:
  Confirmed
Status in “pyopenssl” package in Ubuntu:
  Confirmed
Status in “pyopenssl” package in Debian:
  Confirmed

Bug description:
  pyOpenSSL's Connection object has a shutdown method taking no
  arguments.  Standard sockets have a shutdown method taking one
  argument.

  Prior to Python 2.7, SocketServer didn't try to use shutdown, but
  starting in 2.7 it does try to use shutdown.  This fails because it
  passes SHUT_WR as an argument.

  Traceback (most recent call last):
    File "demo.py", line 48, in <module>
      test()
    File "demo.py", line 44, in test
      httpd.serve_forever()
    File "/home/exarkun/Projects/python/branches/2.7/Lib/SocketServer.py", line 227, in serve_forever
      self._handle_request_noblock()
    File "/home/exarkun/Projects/python/branches/2.7/Lib/SocketServer.py", line 287, in _handle_request_noblock
      self.shutdown_request(request)
    File "/home/exarkun/Projects/python/branches/2.7/Lib/SocketServer.py", line 459, in shutdown_request
      request.shutdown(socket.SHUT_WR)
  TypeError: shutdown() takes exactly 0 arguments (1 given)

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



More information about the foundations-bugs mailing list