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

Brian Murray brian at ubuntu.com
Tue Dec 17 01:10:18 UTC 2013


** Bug watch added: Debian Bug tracker #691951
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691951

** Also affects: pyopenssl (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691951
   Importance: Unknown
       Status: Unknown

-- 
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:
  Unknown

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