Kaydet (Commit) 37c1f18a authored tarafından Antoine Pitrou's avatar Antoine Pitrou

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

üst 5733c08f
......@@ -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)
......
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