Python 2.7 SocketServer socket shutdown is incompatible with pyOpenSSL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyOpenSSL |
Confirmed
|
Undecided
|
Unassigned | ||
pyopenssl (Debian) |
Fix Released
|
Unknown
|
|||
pyopenssl (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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.
File "/home/
self.
File "/home/
self.
File "/home/
request.
TypeError: shutdown() takes exactly 0 arguments (1 given)
Related branches
Changed in pyopenssl: | |
status: | New → Confirmed |
Changed in pyopenssl (Debian): | |
status: | Unknown → Confirmed |
Changed in pyopenssl (Debian): | |
status: | Confirmed → Fix Released |
This was introduced here, http:// hg.python. org/cpython/ rev/ffd7cf5c728 5/