]> granicus.if.org Git - python/commitdiff
Fix a blunder in r79287. This part is, obviously, poorly tested (if at all).
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 22 Mar 2010 15:07:09 +0000 (15:07 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 22 Mar 2010 15:07:09 +0000 (15:07 +0000)
Lib/ssl.py

index e0096971640824d5b51294126a520980c6e080b0..ebb11b49c5689b2e7b47af4bed7c44bfdee019a8 100644 (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)