Disable dup() of SSLSocket. I don't think it can be made to work.

This commit is contained in:
Guido van Rossum 2007-11-16 01:28:45 +00:00
parent 39eb8fa0db
commit b7b030ec37
1 changed files with 4 additions and 0 deletions

View File

@ -140,6 +140,10 @@ class SSLSocket(socket):
self.do_handshake_on_connect = do_handshake_on_connect
self.suppress_ragged_eofs = suppress_ragged_eofs
def dup(self):
raise NotImplemented("Can't dup() %s instances" %
self.__class__.__name__)
def _checkClosed(self, msg=None):
# raise an exception here if you wish to check for spurious closes
pass