[issue4929] smptlib.py can raise socket.error

2009-01-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Note, this has been ported to py3k in http://svn.python.org/view? view=revrev=68736 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4929

[issue4929] smptlib.py can raise socket.error

2009-01-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Submitted as r68618 -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4929 ___

[issue4929] smptlib.py can raise socket.error

2009-01-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4929 ___

[issue4929] smptlib.py can raise socket.error

2009-01-14 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: On Windows, if you exit a process abnormally (using e.g. os._exit() in Python) while it still has open connections, the other side receives a WSAECONNRESET (error 10054). So, you could write a test case using a dumb server (running

[issue4929] smptlib.py can raise socket.error

2009-01-13 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson krist...@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

[issue4929] smptlib.py can raise socket.error

2009-01-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Your patch looks fine but it would be much better with a test in Lib/test/test_smtp.py ;-) -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4929