Its possible that I am mistaken, but I think the attached test script
demonstrates that something in PyISAPIe's thread local implementation is
broken. Out of 100 requests, I got 77 id clashes. I ran a similar test
against isapi-wsgi and never got an id clash. Similarly, when running
in a native Python threaded WSGI server, I did not get any id clashes.
You can read a little bit more about how I became aware of this here:
http://groups.google.com/group/sqlalchemy/browse_thread/thread/fbca1399020f6a2e
A snippet of the log files from my thread test:
(4420) threadlocal did not exist, creating
(1580) threadlocal did not exist, creating
(4196) threadlocal did not exist, creating
(3852) threadlocal did not exist, creating
(3852) threadlocal did not exist, creating
(1580) id (4196) not equal
(4472) id (1580) not equal
(4196) id (4420) not equal
(4420) id (3852) not equal
(3852) id (4420) not equal
(4472) id (4196) not equal
(4420) id (3852) not equal
(4196) id (3852) not equal
(4984) id (4196) not equal
(4472) id (4420) not equal
(4196) id (3852) not equal
(1580) id (3852) not equal
(4420) id (1580) not equal
(3852) threadlocal did not exist, creating
(1580) id (3852) not equal
(4472) id (1580) not equal
(4420) id (3852) not equal
Your help would be greatly appreciated.
--
--------------------------------------
Randy Syring
RCS Computers & Web Solutions
502-644-4776
http://www.rcs-comp.com
"Whether, then, you eat or drink or
whatever you do, do all to the glory
of God." 1 Cor 10:31