[Info-vax] New OpenSSL update from HP
David Froble
davef at tsoft-inc.com
Mon Jun 15 17:06:44 EDT 2015
Simon Clubley wrote:
> On 2015-06-15, David Froble <davef at tsoft-inc.com> wrote:
>> Ok, I've never written a web server, yet. If I was to do so, I'd
>> seriously look at detached processes rather than sub-processes. Why?
>> Because once you assign the worker process a task, perhaps you'd want it
>> to complete, regardless of whatever the web server does.
>>
>
> What happens if you need to shutdown/restart the web server and need
> to _guarantee_ that all related processes have terminated as part of
> of the shutdown process ?
>
> Simon.
>
Couple of issues there.
First, a worker process lifetime should be measured in fractions of a
second, or a couple seconds at most.
The listener could keep track of the PIDs that it created, and a
shutdown command could terminate them in the chosen manner.
That said, it's been my impression that web server transactions are
stateless, (if I understand that term), and usually occur in a rather
short time period, such as a fraction of a second. Do you have examples
of when a worker process would remain active for an extended period of
time? I'm curious.
All that written, while I've been implementing web services, I have
little experience with web servers.
More information about the Info-vax
mailing list