Warning: Undefined variable $UploadMaxSize in /home/kongdmdu/pmichaud/pmwiki/local/PITS.php on line 8

Warning: Undefined variable $UploadMaxSize in /home/kongdmdu/pmichaud/pmwiki/local/PITS.php on line 9

Warning: Undefined variable $UploadMaxSize in /home/kongdmdu/pmichaud/pmwiki/local/PITS.php on line 10

Warning: Undefined variable $UploadMaxSize in /home/kongdmdu/pmichaud/pmwiki/local/PITS.php on line 11
01534: Race condition in Notify - PITS - PmWiki

01534: Race condition in Notify

Summary: Race condition in Notify
Created: 2025-12-26 11:23
Status: Open
Category: Bug
From: Petko
Assigned:
Priority: 4
Version: 2.5.4
OS:

Description: When using a custom $MailFunction, Notify messages may be sent twice to recipients.

The PHP mail() function sends the messages to a system queue and instantly returns to the processing. Using a custom function opening SMTP and IMAP connections may typically take 1-2 seconds per recipient. If there are several recipients and during the sending another request calls the NotifyUpdate function before the currently running function has saved the updated recipients list, NotifyUpdate will be called again with the previous recipients list. Petko