2

Is there any good way to detect when the IIS Application pool resets and creates a new worker process?

I need to detect this event to disconnect a web socket connection. This is keeping the process from shutting down even after the 90 second time limit has elapsed at which time IIS normally kills the process.

I have tried using the application_end() method to do this but when the worker process has a WS connection this method does not seem to be called until the connection is broken.

CodingYoshi
  • 25,467
  • 4
  • 62
  • 64
Lightning77
  • 313
  • 5
  • 14

0 Answers0