HttpModules in different threads

  • Thread starter Thread starter Craig Neuwirt
  • Start date Start date
C

Craig Neuwirt

I have 2 HttpModules in my app. I use CallContext to set some thread
specific info. Recently, I ran into a problem in which it appeared that the
2 HttpModules were executed in multiple threads. Is this possible in the
HTTP Pipeline. I realize that using CallContext is not recommended, but is
it forbidden?

thanks,
craig
 
yes, the processing thread can switch during the pipeline processing, so you
can not safely use thread local storage, to pass data between modules (or
callbacks to the same module).

-- bruce (sqlwork.com)

| I have 2 HttpModules in my app. I use CallContext to set some thread
| specific info. Recently, I ran into a problem in which it appeared that
the
| 2 HttpModules were executed in multiple threads. Is this possible in the
| HTTP Pipeline. I realize that using CallContext is not recommended, but
is
| it forbidden?
|
| thanks,
| craig
|
|
 
Back
Top