httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jerry Stuckle <>
Subject Re: Doing left-over request processing at startup....
Date Wed, 29 Dec 2010 13:27:33 GMT

On 12/29/2010 7:07 AM, Mike Meyer wrote:
> On Wed, 29 Dec 2010 11:00:09 +0200
> Issac Goldstand<>  wrote:
>> On 29/12/2010 10:52, Mike Meyer wrote:
>>> The current code actually works fine - except for this timing
>>> issue. If I kill apache in the middle of handling a reversal, and
>>> restart it, the first connection will cause the unfinished reversal to
>>> be finished. I'm trying to find some way to make this happen at
>>> startup, instead of on the first connection.
>> Maybe try something simpler?  Write a script which fires at apache
>> startup and just makes a dummy request to trigger the queue?  I know
>> that's a lot less fun and less elegant ;), but will it get the job done?
> Yeah, I'd been thinking about something like that. Start it a bit
> after apache, probe the port, connect, count to one, and go away....
>        Thanks,
>        <mike

If you don't need to give feedback to the web user, just place the 
request in a queue, i.e. in a database.  Then start a cron job every 5 
minutes (or whenever) to process any work in the queue.  Much simpler.

View raw message