Message348752
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 |
|
Date |
User |
Action |
Args |
2019-07-30 15:41:30 | cherusk | set | recipients:
+ cherusk, barry, r.david.murray |
2019-07-30 15:41:30 | cherusk | set | messageid: <1564501290.13.0.408923844386.issue37721@roundup.psfhosted.org> |
2019-07-30 15:41:30 | cherusk | link | issue37721 messages |
2019-07-30 15:41:29 | cherusk | create | |
|