This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author giampaolo.rodola
Recipients facundobatista, giampaolo.rodola, gregory.p.smith
Date 2008-02-19.19:53:03
SpamBayes Score 0.014823969
Marked as misclassified No
Message-id <1203450784.48.0.914624365549.issue2143@psf.upfronthosting.co.za>
In-reply-to
Content
By looking through the smtplib module code I think I've found a
potential issue in the SSLFakeFile class code since there's a while loop
which is supposed to be stopped only when the "\n" character is encountered:

        def readline(self):
            str = ""
            chr = None
            while chr != "\n":
                chr = self.sslobj.read(1)
                str += chr
            return str


The patch in attachment just adds a break statement to prevent the while
loop to hang forever in case the "\n" character is never encountered.
History
Date User Action Args
2008-02-19 19:53:04giampaolo.rodolasetspambayes_score: 0.014824 -> 0.014823969
recipients: + giampaolo.rodola, facundobatista, gregory.p.smith
2008-02-19 19:53:04giampaolo.rodolasetspambayes_score: 0.014824 -> 0.014824
messageid: <1203450784.48.0.914624365549.issue2143@psf.upfronthosting.co.za>
2008-02-19 19:53:03giampaolo.rodolalinkissue2143 messages
2008-02-19 19:53:03giampaolo.rodolacreate