Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: The One on August 10, 2005, 02:49:23 AM

Title: Notifying members in a separate thread of execution
Post by: The One on August 10, 2005, 02:49:23 AM
I run SMF on a Windows 2k server  and it uses SMTP for email notification to members.
The problem is on some board I have around 80 members who want to be notified on new topics, in this board whenever a new topic is posted after I click submit the page sort of hangs, I think this is because of the processing of the email sending.
Is there any way this coul be put in some other process/thread so that the poster does not see this "hung" page happen?
Title: Re: Notifying members in a separate thread of execution
Post by: The One on August 11, 2005, 12:13:07 AM
Does PHP allow spawning threads?
Title: Re: Notifying members in a separate thread of execution
Post by: [Unknown] on August 11, 2005, 01:31:32 AM
Not really.  There's PCNTL, but that's only for CGI/CLI and off on 99% of servers anyway.

The best you can do is put it in a "todo list" and do it later, but there are problems with that, including race conditions, as well.

-[Unknown]
Title: Re: Notifying members in a separate thread of execution
Post by: The One on August 11, 2005, 05:22:44 AM
Hmmm... ok  :(.
Is there anything I can do on the web server to improve this?
Title: Re: Notifying members in a separate thread of execution
Post by: [Unknown] on August 11, 2005, 09:23:23 PM
It's been impressed upon me that qmail is a lot more efficient in the respect of sending emails than exim, but I haven't any experience there I'm afraid - nor any idea how to switch.

-[Unknown]
Title: Re: Notifying members in a separate thread of execution
Post by: The One on September 04, 2005, 02:04:47 AM
I have a new Debian machine now where I was going to install some mail daemon? I was wondering which one to use qmail/cmail/fetchmail/sendmail etc..
I am thinking of going in for qmail as "Unknown" had suggested, but just wanted to ask around if there was something better.