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
Changes by Sean Reifschneider [EMAIL PROTECTED]:
--
resolution: - accepted
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2143
__
___
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
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