Commit cfe00300 authored by Antoine Pitrou's avatar Antoine Pitrou

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

parent 78ec8815
...@@ -257,15 +257,6 @@ class SSLSocket(socket): ...@@ -257,15 +257,6 @@ class SSLSocket(socket):
raise ValueError( raise ValueError(
"non-zero flags not allowed in calls to recv_into() on %s" % "non-zero flags not allowed in calls to recv_into() on %s" %
self.__class__) 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) return self.read(nbytes, buffer)
else: else:
return socket.recv_into(self, buffer, nbytes, flags) return socket.recv_into(self, buffer, nbytes, flags)
......
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