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: Helmut Tschemernjak <email@hidden>
- Date: Thu, 11 Sep 2003 10:45:57 +0200
- Organization: HELIOS Software GmbH
Hello,
thank you very much for all the feedback. I found out that the session
is still alive and will automatically timeout after the session timeout
which allows me to close my socket in the session terminate handler.
Another option for the user is to go back one page in the browser and
continue in the session and avoid the area where the error occurred
until it is fixed.
I learned as well about the handleException handler in the WOApplication
class.
thank you.
Helmut
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.
--
_______________________________________________
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.