arturobernalg commented on code in PR #516:
URL: 
https://github.com/apache/httpcomponents-core/pull/516#discussion_r1970974242


##########
httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ServerHttp1StreamHandler.java:
##########
@@ -222,7 +226,7 @@ void activateChannel() throws IOException, HttpException {
         outputChannel.activate();
     }
 
-    boolean isResponseFinal() {
+    synchronized boolean isResponseFinal() {

Review Comment:
   Use `ReentrantLock` instead of synchronized for compatibility with Java 21+ 
virtual threads



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to