Skip to content

Small delay between UI and SMTP output #12

@ramonsmits

Description

@ramonsmits

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions