This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 07cfeeba86 66482: Restore inline state after async operation in NIO2
07cfeeba86 is described below
commit 07cfeeba86c47d5c7bf071d59640a3e9d7c59dee
Author: remm <[email protected]>
AuthorDate: Mon Feb 27 13:24:49 2023 +0100
66482: Restore inline state after async operation in NIO2
Patch submitted by zhougang.
---
java/org/apache/tomcat/util/net/Nio2Endpoint.java | 7 +++++--
webapps/docs/changelog.xml | 5 +++++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/tomcat/util/net/Nio2Endpoint.java
b/java/org/apache/tomcat/util/net/Nio2Endpoint.java
index 7eb12b710f..1ed399c3f7 100644
--- a/java/org/apache/tomcat/util/net/Nio2Endpoint.java
+++ b/java/org/apache/tomcat/util/net/Nio2Endpoint.java
@@ -1039,8 +1039,11 @@ public class Nio2Endpoint extends
AbstractJsseEndpoint<Nio2Channel,AsynchronousS
writeNotify = true;
}
Nio2Endpoint.startInline();
- run();
- Nio2Endpoint.endInline();
+ try {
+ run();
+ } finally {
+ Nio2Endpoint.endInline();
+ }
}
@Override
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index f330c596d5..a0c6b8ebd8 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -138,6 +138,11 @@
Add a check for the validity of the scheme pseudo-header in HTTP/2.
(markt)
</add>
+ <fix>
+ <bug>66482</bug>: Restore inline state after async operation in NIO2,
+ to account the fact that unexpected exceptions are sometimes thrown
+ by the implementation. Patch submitted by zhougang. (remm)
+ </fix>
</changelog>
</subsection>
</section>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]