Kaydet (Commit) b7b030ec authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst 39eb8fa0
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment