Fix a blunder in r79287. This part is, obviously, poorly tested (if at all).

This commit is contained in:
Antoine Pitrou 2010-03-22 15:07:09 +00:00
parent 5733c08f55
commit 37c1f18a72
1 changed files with 0 additions and 9 deletions

View File

@ -257,15 +257,6 @@ class SSLSocket(socket):
raise ValueError(
"non-zero flags not allowed in calls to recv_into() on %s" %
self.__class__)
while True:
try:
v = self.read(nbytes, buffer)
return v
except SSLError as x:
if x.args[0] == SSL_ERROR_WANT_READ:
continue
else:
raise x
return self.read(nbytes, buffer)
else:
return socket.recv_into(self, buffer, nbytes, flags)