Am 13.11.2012 09:02, schrieb Marco Pallante:
> Hello everybody,
> 
> Can you explain to me what happens to the global namespace
> when Apache serves requests to different virtual hosts?
> 
> I did a check, creating something inside :: (variables, procs, and
> another namespace) with a request towards a virtual host, and
> then tried to see whether they exists from a request towards
> another vh.
> 
> They are not accessible, as I would expect, but then I'm asking
> whether is just a case, because the two requests were served
> by different child processes, or whether Apache guarantees
> that each child never serves more than a virtual host, or whether
> Rivet ensures that each virtual host inside a child process gets
> its own private global namespace.
> 
> Is there any reference to this behavior?
> 
> Thank you very much for your anwser, and sorry if I'm bothering
> so much!

Quick anwer from the novice guy:
Apache uses the interpreters when they are free. You have no influence
on the usage.
The globals are still there if an interpreter is reused for a request.

Due to that fact:
- .rvt create a namespace "request" for each request where globals are
stored and deletes it when it was served. All commands are invoked
within this namespace.
- in .tcl files, you have to care on your own.

Hope this helps,
Harald


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to