[issue2143] smtplib.SSLFakeFile hangs forever if \n is not encountered

2008-03-19 Thread Sean Reifschneider
Sean Reifschneider [EMAIL PROTECTED] added the comment: ssl.SSLSocket.read() says: Return zero-length string on EOF. So, I'm going to apply this patch. Applied in rev 61656. -- keywords: +patch nosy: +jafo priority: - normal __ Tracker [EMAIL

[issue2143] smtplib.SSLFakeFile hangs forever if \n is not encountered

2008-03-19 Thread Sean Reifschneider
Changes by Sean Reifschneider [EMAIL PROTECTED]: -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2143 __ ___

[issue2143] smtplib.SSLFakeFile hangs forever if \n is not encountered

2008-02-23 Thread Rafael Zanella
Rafael Zanella added the comment: As of 2.6 the smtplib uses the ssl module, until 2.5 it uses _ssl, I *think* that this issue would bring an Exception on 2.5 while on 2.6 would return a zero length string: def read(self, len=1024): Read up to LEN bytes and return them. Return

[issue2143] smtplib.SSLFakeFile hangs forever if \n is not encountered

2008-02-19 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': 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