« Return to Thread: mod-mono-server2 with threadpool does not correct threadstatic

mod-mono-server2 with threadpool does not correct threadstatic

by Adriaan van Kekem :: Rate this Message:

Reply to Author | View in Thread

Hi,

I have a mono application running with mod_mono on mono 1.2.4. I have created somewhere in my webapp a threadstatic variable, actually a generic stack with specific objects. No i am running my webapp, and seeing my log file, i see that sometimes the same thread is reused later. This is logical, because there is a threadpool containing all threads, using them later again. But when i see that the same thread is reused, the threadstatic variables are not reset. I don't know if this is a bug, from compiler view its right, because it's the same thread. But from webapplication view, i think this is not right.

Is there any solution for this, or have i to report this as a real bug?

greetings,

Adriaan

 « Return to Thread: mod-mono-server2 with threadpool does not correct threadstatic