This is roughly socket2.diff from issue 1378, with a few changes applied
to ssl.py (no need to test whether we can dup any more). Regular sockets no longer have a _base, but we still have explicit reference counting of socket objects for the benefit of makefile(); using duplicate sockets won't work for SSLSocket.
G
Guido van Rossum committed
39eb8fa0dbbcd6568fceb7ca59220aa3281e0cc4
Parent: dd9e3b8