connection drops while script running
- From: "This" <info@xxxxxxxxxxxxxxxx>
- Date: Fri, 15 Feb 2008 10:43:13 -0000
I have a pretty basic emailing script that sends a relatively small number
(150) of html emails.
The emails are compiled, personalised from a mysql db subscribers list,
and sent using mail() - after sending, a small summary html page is sent to
the user with number sent, time taken and a simple navigation choice. Up to
about 100 emails it all works fine - this takes the server about 27 secs .
Any more than that and although the emails are sent ok the connection to the
browser appears terminated - it looks like a 30 sec timeout. The user is
left with a 'connection failed' screen in the browser and the worrying
sensation that the send has failed.
I have the max_execution_time set for 90 secs, (this can be set locally with
a php.ini on an individual directory basis on this server) , no error
messages are sent, and the script obviously completes the emailing (as, on
test, they all arrive). http_connection is set globally on the server to
Keep-Alive .It's apache/linux on the server.
I have an ongoing support ticket with the host company but so far no helpful
response. It feels distincly like a server decision but that's not my area -
I dont know the right questions.
Are there any techniques for keeping the connection alive while a longish
script executes?
Any suggestions?
.
- Follow-Ups:
- Re: connection drops while script running
- From: AnrDaemon
- Re: connection drops while script running
- From: Jerry Stuckle
- Re: connection drops while script running
- Prev by Date: Re: Creating Dynamic Forms
- Next by Date: Re: connection drops while script running
- Previous by thread: Loaded Configuration File (none) ? Why ?
- Next by thread: Re: connection drops while script running
- Index(es):
Relevant Pages
|