You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_dtcl@tcl.apache.org by "Zeinert, Holger" <Ho...@lms-gmbh.de> on 2002/10/04 09:50:02 UTC
Multiple Threads on Windows
Hi,
I'm using Apache 1.3.26 on Windows XP together with mod_dtcl. It runs rather
stable, but sometimes apache crashes or the .ttml script gets problems
accessing global variables. This happens ever now an then, but now I got
this every time I use a page with FRAMEs. Both FRAMESETs are created
dynamically through mod_dtcl, but most of the time they were not displayed
correctly. They give TCL errors accessing global variables
can't read "ENVS(SCRIPT_FILENAME)": no such variable
sometimes messages like
HTTP/1.1 200 OK Date: Fri, 04 Oct 2002 07:37:24 GMT Server: Apache/1.3.26
(Win32) mod_dtcl Connection: close Transfer-Encoding: chunked, chunked
Content-Type: text/html
or apache crashes.
The solution is to configure apache to use a Child for every request and to
use only one thread per child. Then, everything works fine, but of course it
slows down a bit.
Can anybody help with this? What did I do wrong? Is mod_dtcl thread-safe?
Obviously, a page with FRAMEs will request two pages (both FRAMESETs) at
almost the same time.
Best regards
Holger
____________________________________________________________________
|
| Holger Zeinert - Development Manager CAE Division
|____________________________________________________________________
| LMS Deutschland GmbH - tel +49 631 4166-180, fax -166
| Luxemburger Str. 7, 67657 Kaiserslautern, GERMANY
| mailto:holger.zeinert@lms-gmbh.de http://www.lmsintl.com
---------------------------------------------------------------------
To unsubscribe, e-mail: mod_dtcl-unsubscribe@tcl.apache.org
For additional commands, e-mail: mod_dtcl-help@tcl.apache.org
Re: Multiple Threads on Windows
Posted by "David N. Welton" <da...@dedasys.com>.
"Zeinert, Holger" <Ho...@lms-gmbh.de> writes:
> Can anybody help with this? What did I do wrong? Is mod_dtcl
> thread-safe? Obviously, a page with FRAMEs will request two pages
> (both FRAMESETs) at almost the same time.
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.
Offhand, I can tell you that Tcl itself, when it does threads, creates
a seperate interpreter per thread, so that might be problematic. 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.
I do have an XP computer at work that I could set up to debug this on,
but I'd like some more information first.
Thanks,
--
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: mod_dtcl-unsubscribe@tcl.apache.org
For additional commands, e-mail: mod_dtcl-help@tcl.apache.org