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:
|
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:
|
pLogFile = fopen(szFilename, "a"); |
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.
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:
PDW/utils/smtp.cpp
Line 1061 in 3b18894
but also, the sending is in a separate send thread:
PDW/utils/smtp.cpp
Lines 1096 to 1098 in 3b18894
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:
PDW/Misc.cpp
Line 1156 in 3b18894
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.