[New-bugs-announce] [issue4066] smtplib SMTP_SSL._get_socket doesn't return a value

Marcin Bachry report at bugs.python.org
Tue Oct 7 16:26:15 CEST 2008

New submission from Marcin Bachry <hegel666 at gmail.com>:

SMTP.connect method expects _get_socket() method to return socket object:

  self.sock = self._get_socket(host, port, self.timeout)

but overriden _get_socket() method in SMTP_SSL class doesnt' have return
statement (it sets self.sock instead).  Hence I get
SMTPServerDisconnected exception when I try to send mail over ssl.

The same seems to apply to LMTP class.

components: Library (Lib)
files: smtplib.diff
keywords: patch
messages: 74452
nosy: marcin.bachry
severity: normal
status: open
title: smtplib SMTP_SSL._get_socket doesn't return a value
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file11729/smtplib.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list