[Freeipa-devel] [PATCH] 0001 Ensure that Apache is running in Prefork mode
Jan Zeleny
jzeleny at redhat.com
Fri Nov 12 13:10:06 UTC 2010
Rob Crittenden <rcritten at redhat.com> wrote:
> Jan Zelený wrote:
> > Rob Crittenden<rcritten at redhat.com> wrote:
> >> Jan Zelený wrote:
> >>> I tried one other solution, but this approach was recommended to me by
> >>> Pavel. It seems to be working fine. If you don't agree with the concept
> >>> (detection per request), I can present you the original one.
> >>>
> >>> https://fedorahosted.org/freeipa/ticket/252
> >>>
> >>> Jan
> >>
> >> nack. I think we need some logging to say "IPA does not work with the
> >> threaded MPM, use the pre-fork MPM" or something like that.
> >>
> >> Otherwise it is going to silently fail and users will have no idea why.
> >
> > I added logging as you requested. I'm still not quite sure how does the
> > logging work exactly, but as I understand it, this way it should be ok.
> >
> > Jan
>
> nack, I can still run httpd.worker and serve IPA requests.
>
> We do things to the environment so we need to be sure that each request
> is isolated from all others which is why we want to run in multi-process
> mode.
>
> rob
I based that patch on WSGI specification, which says:
"This value should evaluate true if the application object may be
simultaneously invoked by another thread in the same process, and should
evaluate false otherwise."
I didn't realize that this condition may be evaluated as false even when
running multiple threads.
That means I have to abandon this approach and try the original one. I'm going
to sync the patch I have prepared with the current HEAD and I'll send it ASAP.
Jan
More information about the Freeipa-devel
mailing list