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

Bug Watch Updater 900792 at bugs.launchpad.net
Thu Apr 2 22:22:36 UTC 2020


** Changed in: pyopenssl (Debian)
       Status: Confirmed => Fix Released

-- 
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:
  Fix Released

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