From: Antoine Pitrou Date: Mon, 22 Mar 2010 15:07:09 +0000 (+0000) Subject: Fix a blunder in r79287. This part is, obviously, poorly tested (if at all). X-Git-Tag: v3.2a1~1343 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37c1f18a7224e00f61b2141420c24dc6f391abb9;p=python Fix a blunder in r79287. This part is, obviously, poorly tested (if at all). --- diff --git a/Lib/ssl.py b/Lib/ssl.py index e009697164..ebb11b49c5 100644 --- a/Lib/ssl.py +++ b/Lib/ssl.py @@ -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)