User-439472081 posted
I'm trying to track and log information about which request resulted in spawning a specific CGI process (map: unique request --> CGI process id). So far I've had little luck using modules due to IIS's use of "thread agility." My first attempt hooked at
PreRequestHandlerExecute but in situations with high concurrency the correctness of the mapping/logger did not hold up.
I'm currently considering an approach that either injects information into a child CGI process through environment variables, which can be used to recreate the mapping, or if possible wrapping/extending the CGI handler to record the information I need when
Create Process is called.
So my question is, are there any open source CGI handlers or is it possible to extend the built in CGI handler to perform these additional tasks? Additionally, I'm open to any suggestions or references to prior attempts to do this.
Thanks