Re: HowTo cleanup Session data after an Application error occurred
Re: HowTo cleanup Session data after an Application error occurred
- Subject: Re: HowTo cleanup Session data after an Application error occurred
- From: Hsu <email@hidden>
- Date: Wed, 10 Sep 2003 22:15:12 -0700
It doesn't sound like anything is crashing. It sounds like the request
threw an exception, but the session object itself should be fine - it
should be checked back into the session store. You may want to handle
the exception (WOApplication handleException probably) and terminate
the socket connection there. If this is a consistent crash, you should
probably try to avoid it :)
Karl
On Wednesday, September 10, 2003, at 01:09 PM, Helmut Tschemernjak
wrote:
Hello,
within a session I store a TCP/IP socket connection for my private
communication to another server. When the session crashes and WO
reports the very helpful error stack backtrace. I need a way to close
the socket connection which is stored in the session object.
My understanding is that the thread will be stopped, but I need to
close my private socket to avoid hanging dead connections.
I have a implemented a terminate function which gets called for a
session timeout but terminate is not getting called on errors.
Any ideas?
best regards / mit freundlichen Gruessen,
Helmut Tschemernjak
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Phone: +49-5131-709320
Fax: +49-5131-709325
Internet Mail: email@hidden
Internet Web: http://www.helios.de
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
"If you press the backspace key and anything else apart from the
character to the left of the cursor disappearing happens, you're using
a Unix"
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.