mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Remove the SSLSocket versions of sendmsg/recvmsg due to lack of proper tests and documentation in conjunction with lack of any known use cases (see issue #6560 for details)
This commit is contained in:
parent
710d27e93a
commit
5fab03fd15
2 changed files with 0 additions and 40 deletions
24
Lib/ssl.py
24
Lib/ssl.py
|
|
@ -355,14 +355,6 @@ def sendto(self, data, flags_or_addr, addr=None):
|
|||
else:
|
||||
return socket.sendto(self, data, flags_or_addr, addr)
|
||||
|
||||
def sendmsg(self, *args, **kwargs):
|
||||
self._checkClosed()
|
||||
if self._sslobj:
|
||||
raise ValueError("sendmsg not allowed on instances of %s" %
|
||||
self.__class__)
|
||||
else:
|
||||
return socket.sendmsg(self, *args, **kwargs)
|
||||
|
||||
def sendall(self, data, flags=0):
|
||||
self._checkClosed()
|
||||
if self._sslobj:
|
||||
|
|
@ -421,22 +413,6 @@ def recvfrom_into(self, buffer, nbytes=None, flags=0):
|
|||
else:
|
||||
return socket.recvfrom_into(self, buffer, nbytes, flags)
|
||||
|
||||
def recvmsg(self, *args, **kwargs):
|
||||
self._checkClosed()
|
||||
if self._sslobj:
|
||||
raise ValueError("recvmsg not allowed on instances of %s" %
|
||||
self.__class__)
|
||||
else:
|
||||
return socket.recvmsg(self, *args, **kwargs)
|
||||
|
||||
def recvmsg_into(self, *args, **kwargs):
|
||||
self._checkClosed()
|
||||
if self._sslobj:
|
||||
raise ValueError("recvmsg_into not allowed on instances of %s" %
|
||||
self.__class__)
|
||||
else:
|
||||
return socket.recvmsg_into(self, *args, **kwargs)
|
||||
|
||||
def pending(self):
|
||||
self._checkClosed()
|
||||
if self._sslobj:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue