Skip to content

Commit 8729485

Browse files
committed
2 parents e1bd9c8 + 005d160 commit 8729485

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

java/org/apache/tomcat/util/net/Nio2Endpoint.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,8 +1028,11 @@ protected void start() {
10281028
writeNotify = true;
10291029
}
10301030
Nio2Endpoint.startInline();
1031-
run();
1032-
Nio2Endpoint.endInline();
1031+
try {
1032+
run();
1033+
} finally {
1034+
Nio2Endpoint.endInline();
1035+
}
10331036
}
10341037

10351038
@Override

webapps/docs/changelog.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@
137137
Add a check for the validity of the scheme pseudo-header in HTTP/2.
138138
(markt)
139139
</add>
140+
<fix>
141+
<bug>66482</bug>: Restore inline state after async operation in NIO2,
142+
to account the fact that unexpected exceptions are sometimes thrown
143+
by the implementation. Patch submitted by zhougang. (remm)
144+
</fix>
140145
</changelog>
141146
</subsection>
142147
<subsection name="Jasper">

0 commit comments

Comments
 (0)