On 28 Feb 2006, at 16:43, Jeremy Henty wrote:
Does this mean that the different virtual hosts can load different Tcl code at startup? If so, how is this implemented? Is there a different Tcl interpreter for each virtual host?
Yes they can, and they do.

AOLserver keeps a pool of threads than handle client requests and each of these gets a seperate Tcl interpreter assigned. Each virtual server has their own pool.

The code in the "modules/tcl" directory gets parsed into an "interpreter init script". Any time a new thread is created, this script is run in the freshly instantiated interpreter. This is basically all the procedures that are defined in the Tcl files, to make sure things like "ns_register_proc" are not run twice.

Hope that clears things up!

Bas.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to