On Wed, May 12, 2010 at 06:47:03PM +0100, Michael Hanselmann wrote:
> 2010/5/12 Iustin Pop <[email protected]>:
> > On Wed, May 12, 2010 at 04:29:47PM +0100, Luca Bigliardi wrote:
> >> Signed-off-by: Luca Bigliardi <[email protected]>
> >> +class MlockallRequestExecutor(http.server.HttpServerRequestExecutor):
> >> +  """Custom Request Executor class that ensures NodeHttpServer children 
> >> are
> >> +  locked in ram.
> >> +
> >> +  """
> >> +  def __init__(self, *args, **kwargs):
> >> +    utils.Mlockall()
> >> +    http.server.HttpServerRequestExecutor.__init__(self, *args, **kwargs)
> >
> > Hmm, why do we want the children too locked? Wouldn't it be possible to
> > fallback and execute the powercycle request from the parent node daemon?
> 
> No, because SSL negotiation and HTTP parsing only happens in the child 
> process.

Ah, I see, thanks.

iustin

Reply via email to