Catalin Iacob <iacobcata...@gmail.com> added the comment:

Just a note after running Joe's example. smtplib is affected by this issue in 
3.x, but the example produces different results in 3.x: smtpd doesn't keep the 
connection open due to UnicodeDecodeError when the data from the ssl handshake 
cannot be decoded as utf-8:

error: uncaptured python exception, closing channel <__main__.SMTPChannel 
connected 127.0.0.1:34160 at 0xb739a4cc> (<class 'UnicodeDecodeError'>:'utf8' 
codec can't decode bytes in position 13-14: invalid continuation byte 
[/mnt/data/catalin/hacking/cpython/default/Lib/asyncore.py|read|83] 
[/mnt/data/catalin/hacking/cpython/default/Lib/asyncore.py|handle_read_event|442]
 [/mnt/data/catalin/hacking/cpython/default/Lib/asynchat.py|handle_read|190] 
[/mnt/data/catalin/hacking/cpython/default/Lib/smtpd.py|collect_incoming_data|278])

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12378>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to