You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2015/06/05 14:37:46 UTC
svn commit: r1683743 -
/tomcat/trunk/java/org/apache/coyote/http2/StreamStateMachine.java
Author: markt
Date: Fri Jun 5 12:37:46 2015
New Revision: 1683743
URL: http://svn.apache.org/r1683743
Log:
Sending RST is no different to sending end stream in terms of frames that may be received.
Remove state checks since these are now implemented in checkFrameType()
Modified:
tomcat/trunk/java/org/apache/coyote/http2/StreamStateMachine.java
Modified: tomcat/trunk/java/org/apache/coyote/http2/StreamStateMachine.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/StreamStateMachine.java?rev=1683743&r1=1683742&r2=1683743&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http2/StreamStateMachine.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http2/StreamStateMachine.java Fri Jun 5 12:37:46 2015
@@ -113,21 +113,11 @@ public class StreamStateMachine {
public synchronized void sendReset() {
- if (state == State.CLOSED) {
- // This should never happen
- // TODO: ProtocolExcpetion? i18n
- throw new IllegalStateException();
- }
- state = State.CLOSED_RESET;
+ state = State.CLOSED;
}
public synchronized void recieveReset() {
- if (state == State.IDLE) {
- // This should never happen
- // TODO: ProtocolExcpetion? i18n
- throw new IllegalStateException();
- }
state = State.CLOSED_RESET;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org