Updated the smtp client object handling logic by thread local client variable #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "cis-kuldeep/influx-smtp-gateway:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -110,2 +132,4 @@
cherrypy.tree.mount(ROOT, config={})
mythread = threading.local()
mythread.client = smtplib.SMTP(host=SMTP_SERVER_HOST,
mythread.client = None
@ -112,0 +134,4 @@
mythread = threading.local()
mythread.client = smtplib.SMTP(host=SMTP_SERVER_HOST,
port=SMTP_SERVER_PORT)
mythread.client.starttls()
remove
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Gitea.