def read(self, size):
        # sslobj.read() sometimes returns < size bytes
        chunks = []
        read = 0
        while read < size:
            data = self.sslobj.read(min(size-read, 16384)) # use min() instead of max().
            read += len(data)
            chunks.append(data)
        return ''.join(chunks)

#### MAIL ##########################################################################################
Send the response header and log the response code.
dataset/ETHPy150Open clips/pattern/pattern/web/imap/__init__.py/IMAP4_SSL.read--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/appengine-flask-skeleton/lib/werkzeug/serving.py/WSGIRequestHandler.send_response