Re: Deadlock when a session timeout
Re: Deadlock when a session timeout
- Subject: Re: Deadlock when a session timeout
- From: Chuck Hill <email@hidden>
- Date: Mon, 29 Aug 2005 10:25:32 -0700
On Aug 29, 2005, at 6:28 AM, Daniel Muller wrote:
Hi,
Is there any known deadlock when a session timeout, particularly with
the shared editing context?
I don't use the shared EC, but I have seem some cases of deadlock at
the session checkout stage where two requests for the same session
arrive one immediately after the other and the first request results
in a call to session().terminate(). The second request never gets
dispatched as it is waiting for the checkin of a session that no
longer exists. Rapidly double clicking on a Logout link can produce
this. I don't recall having seen this prior to WO 5.2 The
workaround / fix is to not call terminate(), but rather to set the
session time out to 2 or 3 seconds.
Chuck
One of my application does some cleaning when the session timeout, and
a deadlock occurs rarely (not more than 3x during 12 months). The Java
threads dump shows a wait call related to the shared editing context
(last EOF calls are: NSRecursiveLock.lock, and
EOSharedEditingContext.lock for the other thread) but the EC created
when session is terminating has not shared EC (explicit call to
setSharedEditingContext(null)).
I try the same application without the cleaning code, it works well
for
more than 2 months. I also checked the code using the shared EC to
ensure it uses only methods of EOSharedEditingContext class and not
explicit calls to EOF, like fetching object with normal API.
Regards,
Daniel
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden