This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cherusk
Recipients barry, cherusk, r.david.murray
Date 2019-07-30.15:41:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564501290.13.0.408923844386.issue37721@roundup.psfhosted.org>
In-reply-to
Content
From PR:

Following script stals/hangs. According to my tracing done, in the smtpd component. The concept of the script is baseline of my unit testing for [1], so not hypothetical:

import logging
import sys
logging.basicConfig(level=logging.DEBUG, stream=sys.stdout)

from smtpd import DebuggingServer as TestMailServer
import threading
from notifiers import get_notifier
import time
import itertools as it

mail_server = threading.Thread(target=TestMailServer, args=(("localhost", 2500), None))
mail_server.daemon = True
mail_server.start()

time.sleep(2)


for msg in it.repeat('copy', 100):
    print(msg)
    get_notifier('email').notify(from_='cherusk@localhost',
                                 to='root@localhost',
                                 message=msg,
                                 subject='TST',
                                 host='localhost',
                                 port=2500,
                                 tls=False,
                                 ssl=False,
                                 html=False,
                                 username="some",
                                 password='pw'
                                 )

I evaluated that on several platforms(FED29, UBUNTU-Latest), same symptoms. Also, on network stack I saw a clean TCP handshake happening, also cleanly ACKed by the smptd. So, presumption is that it's something in the dispatcher.

[1] https://github.com/cherusk/tw_timeliness/blob/master/test/time_engine_test.py
History
Date User Action Args
2019-07-30 15:41:30cherusksetrecipients: + cherusk, barry, r.david.murray
2019-07-30 15:41:30cherusksetmessageid: <1564501290.13.0.408923844386.issue37721@roundup.psfhosted.org>
2019-07-30 15:41:30cherusklinkissue37721 messages
2019-07-30 15:41:29cheruskcreate