"Zeinert, Holger" <[EMAIL PROTECTED]> writes:

[ I'm not sure I ever answered this!  My apologies. ]

> Hi David,

> > I will look into this more, but I would be curious if Rivet works
> > on that system.  With the time I have right now being rather
> > limited, Rivet is getting just about %100 of my efforts.

> From the information on the web sites, I also thought that Rivet
> would be a good alternative -- most similar syntax and newer. But I
> could not build it on my machine. I got all sources for TCL, Apache
> and Rivet, also MinGW to have a GNU/UNIX like environment, but it
> does not compile on my Windows XP box. One of the reasons might be,
> that I only downloaded the sources and I did not configure every
> package to really build it. E.g. environment TCL_CC is not set and
> the Apache tool APXS (which on windows is a apxs.pl) returns only
> @include@, @libexec@, ...

Right - the Rivet build system parses both tclConfig.sh, and apxs
definitely needs to work, otherwise, there will be problems.

I would be very appreciative to hear what needs doing to get things
working on XP if you felt like doing some hacking, though!

> If you have a Rivet binary, I would be happy to test it on my
> machine.

Not for Windows... my own computer is an Apple Tibook, running Debian
GNU/Linux:-)

> > Offhand, I can tell you that Tcl itself, when it does threads,
> > creates a seperate interpreter per thread, so that might be
> > problematic.

> I should say, that the TCL I use is without thread support. So, this
> also might be the problem.

Without thread support is best, I think.

> > Can you tell me more about how 1.3 works with windows? I'm afraid
> > I'm a bit in the dark with regards to windows.

> Me too. W.r.t. Apache I'm more an end-user. I use the binary
> distribution and my focus is to develop something upon
> apache/mod_dtcl. From what I know from the documentation, Apache on
> Windows starts a child (subprocess), which handles several requests,
> each in a separate thread. By default, the configuration uses 50
> threads per child and a child might handle an unlimited number of
> requests, i.e. only one child is usually used to handle all
> requests.

> For mod_dtcl this means in apache's default configuration: 

>       o apache httpd server get a first request and creates one child
>         handling this request
>       o the new child loads module mod_dtcl into memory
>       o the child handles the request and uses mod_dtcl to create the
>         html page by creating a new namespace, executing the TCL code and
>         destroying the namespace
>       o every new request is also passed to that first child and 
>         in the child handled inside a new thread.

> What happens, if two requests at the same time use mod_dtcl (loaded
> into the child) to create pages? Do Windows threads run in parallel
> like processes? I assume yes.

Tcl interpreters are not thread safe... so there might definitely be
some problems...  I suppose I will have to ask around to get a better
understanding of what is happening on windows.

> PS: I was able to finally build WebSH (websh3.exe) on my machine, it
> took some changes in the configuration and script.h to do so. If you
> are interested, I can post it on the websh mailing list.

Yes - please do!

> I will also try, if an external websh3.exe solves the problem. Then,
> everything from getting the local page (including TCL code) to the
> final HTML page to be send to the client is done in a seperate
> process, which should be no problem. I will see, whether this gives
> some performance drawbacks.

Well, it's not speedy, no, but it's certainly a robust solution.

-- 
David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to