Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
UNDERTOW-456 fix issue with RST_STREAM and enqued data
  • Loading branch information
stuartwdouglas committed Jun 1, 2015
1 parent 5bbab05 commit 4cd9140
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -91,6 +91,9 @@ protected void handleFlushComplete(boolean channelClosed) {
if (channelClosed) {
getChannel().removeStreamSink(getStreamId());
}
if(reset) {
IoUtils.safeClose(this);
}
}

/**
Expand Down Expand Up @@ -161,7 +164,9 @@ void rstStream() {
return;
}
reset = true;
IoUtils.safeClose(this);
if(!isReadyForFlush()) {
IoUtils.safeClose(this);
}
getChannel().removeStreamSink(getStreamId());
}
}

0 comments on commit 4cd9140

Please sign in to comment.