As an ugly hack (which it sounds like you are looking for), this might work:
Create a new assembly with a custom IHttpModule. Have the module handle
the BeginRequest method of the HTTP pipeline. Have it lock on a global
object of some sort (maybe an OS mutex? - look into the WaitHandle class
-I'm just guessing right now).
You can then distribute the new assembly and register the HttpModule in
the web.config file. That should allow you to provide the functionality
without modifying the code.
Robb Gilmore wrote:
> The server is not coded to be multi-threaded. It does not start any
> additional threads. However from the reading I've done, and from what we are
> observing, it appears that IIS runs all apps in multiple worker-threads. So
> if 2 clients call this server at the same time, 2 threads are spawned by IIS
> to handle the requests in parallel. Right now we are stopping this by
> putting a giant lock{} arround the entire method called by the client. But
> that requires a code change, of course. I'm looking for a way to tell IIS (
> 5 and 6 ) NOT to spawn more than 1 worker thread at a time, so that it is
> always processing only 1 client request at a time.
>
> thanks
> Robb
>
> "Cor Ligthert" wrote:
>
>
>>Robb,
>>
>>How did you made it multithreaded?
>>
>>Cor
>>
>>
>>
|