You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2024/11/27 19:25:51 UTC
(tapestry-5) branch master updated: TAP5-2799: Thread lockup when calling Session.getAttribute()
This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
The following commit(s) were added to refs/heads/master by this push:
new 9a08e0afc TAP5-2799: Thread lockup when calling Session.getAttribute()
9a08e0afc is described below
commit 9a08e0afc63c3af59e2cd706cd1864d3689f57c2
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Wed Nov 27 16:25:20 2024 -0300
TAP5-2799: Thread lockup when calling Session.getAttribute()
---
.../java/org/apache/tapestry5/http/internal/services/SessionImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tapestry-http/src/main/java/org/apache/tapestry5/http/internal/services/SessionImpl.java b/tapestry-http/src/main/java/org/apache/tapestry5/http/internal/services/SessionImpl.java
index bc938e97e..d1ae14bc7 100644
--- a/tapestry-http/src/main/java/org/apache/tapestry5/http/internal/services/SessionImpl.java
+++ b/tapestry-http/src/main/java/org/apache/tapestry5/http/internal/services/SessionImpl.java
@@ -1,4 +1,4 @@
-// Copyright 2006-2013 The Apache Software Foundation
+// Copyright 2006-2024 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ public class SessionImpl implements Session
public Object getAttribute(String name)
{
- lock.acquireWriteLock();
+ lock.acquireReadLock();
return session.getAttribute(name);
}