Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small delay between UI and SMTP output #12

Open
ramonsmits opened this issue Jan 7, 2020 · 0 comments
Open

Small delay between UI and SMTP output #12

ramonsmits opened this issue Jan 7, 2020 · 0 comments

Comments

@ramonsmits
Copy link

I notice that there is a small delay. In the user interface I see data appearing.

Looking at the code I the connection is reopened every time:

sfd = smtpConnect(pMail->smtp_server, pMail->smtp_port);

but also, the sending is in a separate send thread:

PDW/utils/smtp.cpp

Lines 1096 to 1098 in 3b18894

if(!xSendMail((THEMAIL *) lpData)) {
Sleep(1000) ;
}

I'm pretty sure that is why I'm noticing that delay. Unfortunately, my c/c++ knowledge is very limited.

I did see that in the code the log file is only opened once:

Monitoring that file via Baretail shows that is updated immediately.

It is not the end of the world kind of issue but wondering if the emailing could be somehow be done faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant