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 <thi...@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);
     }

Reply via email to