Click here to Skip to main content
       

Delphi

 
NewsDelphi online birthday party ?! Pinmembersmags137-Feb-12 7:54 
GeneralRe: Delphi online birthday party ?! Pinmembernortee7-Feb-12 8:28 
GeneralRe: Delphi online birthday party ?! Pinmembersmags1329-Feb-12 8:39 
QuestionCan TWebModule instance shutdown itself? PinmemberCorinna John31-Jan-12 4:17 
I have an ISAPI application with a TWebModule running on IIS6. There's try/except and fine exception logging around every method. Every single request and it's response status are also being logged. About five times a week this happens:
 
1) TWebModule.OnException is called with "EInOutError: File not found". Mostly the error is logged by just one thread, sometimes by up to four threads at once. (The cause must be outside my code, because there are no lines outside try/except blocks.)
2) For a few minutes IIS answers thousands of request with status 500, though they are not logged by the ISAPI DLL. That means, the requests don't cause more exceptions in the TWebModule instances, they seem to just bounce off my IIS.
3) Finally there's a message in the event log that one worker process did not recycle in time.
4) For a day or two, everything runs fine again.
 
I guess the TWebModule instance is in some kind of blocked state, but IIS still tries to feed it with requests. So, I want to stop the thread in TWebModule.OnException. Is there a way to shutdown a single TWebModule, that means one IIS thread or worker process, without recycling the whole Application Pool?
 
Thanks a lot,
Corinna
GeneralRe: Can TWebModule instance shutdown itself? Pinmembersmags1331-Jan-12 8:10 
GeneralRe: Can TWebModule instance shutdown itself? PinmemberCorinna John31-Jan-12 10:38 
QuestionRe: Can TWebModule instance shutdown itself? Pinmembernortee31-Jan-12 20:01 
AnswerRe: Can TWebModule instance shutdown itself? Pinmembernortee1-Feb-12 7:40 
QuestionRe: Can TWebModule instance shutdown itself? Pinmembernortee7-Feb-12 8:31 
AnswerRe: Can TWebModule instance shutdown itself? PinmemberCorinna John8-Feb-12 3:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 19 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid