title: Internal delay between HTTP Module and HTTP Handler in ASP.NET
body: <p>I have a a standard ASP.NET (Web Forms) application running on IIS8 and receiving complaints that sometimes it takes to the website too much time to process requests.</p>
  
  <p>After deep investigation and logging I've figured out that delays take place wherever after the end of <strong>PreRequestHandlerExecute</strong> event in my last HTTP module and before <strong>ProcessRequest</strong> event in my HTTP handler. </p>
  
  <p>As far as I understand I don't have any code in between and this part of the pipeline is absolutely managed by IIS and ASP.NET framework.
  I've also seen that Module and Handler processing thread ID changes when delays take place.</p>
  
  <p>I've read tons of docs and haven't got closer to the resolution :(</p>
  
  <p>What can be reason for these delays? </p>
  
  <p>Thanks in advance</p>