Skip to content

Commit

Permalink
In some circumstances asynchronous requests could time out too soon.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1567634 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Feb 12, 2014
1 parent fd0d862 commit 2a6c5a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions java/org/apache/coyote/ajp/AbstractAjpProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ public final void action(ActionCode actionCode, Object param) {

} else if (actionCode == ActionCode.ASYNC_START) {
asyncStateMachine.asyncStart((AsyncContextCallback) param);
// Async time out is based on SocketWrapper access time
getSocketWrapper().access();

} else if (actionCode == ActionCode.ASYNC_COMPLETE) {
socketWrapper.clearDispatches();
Expand Down
2 changes: 2 additions & 0 deletions java/org/apache/coyote/http11/AbstractHttp11Processor.java
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,8 @@ public final void action(ActionCode actionCode, Object param) {
internalBuffer.addActiveFilter(savedBody);
} else if (actionCode == ActionCode.ASYNC_START) {
asyncStateMachine.asyncStart((AsyncContextCallback) param);
// Async time out is based on SocketWrapper access time
getSocketWrapper().access();
} else if (actionCode == ActionCode.ASYNC_DISPATCHED) {
asyncStateMachine.asyncDispatched();
} else if (actionCode == ActionCode.ASYNC_TIMEOUT) {
Expand Down
8 changes: 8 additions & 0 deletions webapps/docs/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@
</fix>
</changelog>
</subsection>
<subsection name="Coyote">
<changelog>
<fix>
In some circumstances asynchronous requests could time out too soon.
(markt)
</fix>
</changelog>
</subsection>
<subsection name="Other">
<changelog>
<fix>
Expand Down

0 comments on commit 2a6c5a8

Please sign in to comment.