I have a WCF web service that uses ASP.NET session state. WCF sets a read and write lock for the session for each request. This means that my web service can only process one request at a time for each user, which degrades the perceived performance of our AJAX application.
So, I'm trying to find a way around this limitation.
- Using read-only locks (which allows concurrent session access) is not supported by WCF.
- I did not find a way to release the read and write lock manually during request processing
- So, now I think there might be some way to set the read and write lock timeout for a very short period of time so that the wait wait does not require a very long wait. See the lower part in bold.
From MSDN: http://msdn.microsoft.com/en-us/library/ms178581.aspx
"If two simultaneous requests are made for one session, the first request gets exclusive access to the session information. The second request is only executed after the first request is completed. (The second session can also be accessed if the exclusive blocking of information is released because the first request exceeds the time- lockout.) If the EnableSessionState value in the @ Pages directive is set to ReadOnly, a request for read-only session information does not result in an exclusive lock on the session data. "
... But I did not find any information about how long this lock timeout took, or how to change it.
Ash eldritch
source share