Updated the smtp client object handling logic by thread local client variable #2

Open
PeterSurda wants to merge 1 commits from cis-kuldeep/influx-smtp-gateway:master into master
Owner
No description provided.
PeterSurda added 1 commit 2022-02-24 07:21:56 +00:00
PeterSurda reviewed 2022-02-24 07:23:59 +00:00
@ -110,2 +132,4 @@
cherrypy.tree.mount(ROOT, config={})
mythread = threading.local()
mythread.client = smtplib.SMTP(host=SMTP_SERVER_HOST,
Author
Owner

mythread.client = None

```mythread.client = None```
PeterSurda reviewed 2022-02-24 07:25:37 +00:00
@ -112,0 +134,4 @@
mythread = threading.local()
mythread.client = smtplib.SMTP(host=SMTP_SERVER_HOST,
port=SMTP_SERVER_PORT)
mythread.client.starttls()
Author
Owner

remove

remove
This pull request can be merged automatically.
You are not authorized to merge this pull request.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b cis-kuldeep-master master
git pull master

Step 2:

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff cis-kuldeep-master
git push origin master
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Sysdeploy/influx-smtp-gateway#2
No description provided.