[issue4929] smptlib.py can raise socket.error

Kristján Valur Jónsson report at bugs.python.org
Tue Jan 13 12:31:17 CET 2009


New submission from Kristján Valur Jónsson <kristjan at ccpgames.com>:

the SMPT.getreply() method doesn't check for socket.error when doing its 
readline() call.  We now check for connection reset and others that can 
occur here and properly close.  This is to comply with the documentation 
that doesn't specify socket.error as part of the exceptions raised.

----------
components: Library (Lib)
files: smtplib.patch
keywords: needs review, patch, patch
messages: 79732
nosy: krisvale
severity: normal
stage: patch review
status: open
title: smptlib.py can raise socket.error
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7
Added file: http://bugs.python.org/file12716/smtplib.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4929>
_______________________________________


More information about the Python-bugs-list mailing list