Skip to content

Commit

Permalink
Add in test for write error
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1358287 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
fhanik committed Jul 6, 2012
1 parent 193d3b5 commit 690eb5c
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 100 deletions.
3 changes: 2 additions & 1 deletion java/org/apache/coyote/AsyncStateMachine.java
Expand Up @@ -296,7 +296,8 @@ public synchronized void asyncDispatched() {

public synchronized void asyncError() {
if (state == AsyncState.DISPATCHED ||
state == AsyncState.TIMING_OUT) {
state == AsyncState.TIMING_OUT ||
state == AsyncState.READ_WRITE_OP) {
state = AsyncState.ERROR;
} else {
throw new IllegalStateException(
Expand Down

0 comments on commit 690eb5c

Please sign in to comment.