[Python-checkins] r61656 - python/trunk/Lib/smtplib.py

sean.reifschneider python-checkins at python.org
Thu Mar 20 01:46:50 CET 2008


Author: sean.reifschneider
Date: Thu Mar 20 01:46:50 2008
New Revision: 61656

Modified:
   python/trunk/Lib/smtplib.py
Log:
Issue #2143: Fix embedded readline() hang on SSL socket EOF.


Modified: python/trunk/Lib/smtplib.py
==============================================================================
--- python/trunk/Lib/smtplib.py	(original)
+++ python/trunk/Lib/smtplib.py	Thu Mar 20 01:46:50 2008
@@ -175,6 +175,7 @@
             chr = None
             while chr != "\n":
                 chr = self.sslobj.read(1)
+                if not chr: break
                 str += chr
             return str
 


More information about the Python-checkins mailing list