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
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top