This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 5ee1614cfe9ee6511d77c422957eadc486db1dc8 Author: Mark Thomas <ma...@apache.org> AuthorDate: Fri Sep 13 16:56:09 2019 +0100 Clean-up. Remove unused code. Align with 9.0.x. --- java/org/apache/coyote/http2/Stream.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/java/org/apache/coyote/http2/Stream.java b/java/org/apache/coyote/http2/Stream.java index 6b6eb93..32de3fe 100644 --- a/java/org/apache/coyote/http2/Stream.java +++ b/java/org/apache/coyote/http2/Stream.java @@ -376,7 +376,7 @@ public class Stream extends AbstractStream implements HeaderEmitter { headerState = HEADER_STATE_REGULAR; } - switch(name) { + switch (name) { case ":method": { if (coyoteRequest.method().isNull()) { coyoteRequest.method().setString(value); @@ -777,7 +777,6 @@ public class Stream extends AbstractStream implements HeaderEmitter { private volatile boolean closed = false; private volatile StreamException reset = null; private volatile boolean endOfStreamSent = false; - private volatile boolean writeInterest = false; /* The write methods are synchronized to ensure that only one thread at * a time is able to access the buffer. Without this protection, a @@ -943,21 +942,10 @@ public class Stream extends AbstractStream implements HeaderEmitter { if (getWindowSize() > 0 && allocationManager.isWaitingForStream() || handler.getWindowSize() > 0 && allocationManager.isWaitingForConnection() || dataLeft) { - writeInterest = true; return false; } else { return true; } - - } - - synchronized boolean isRegisteredForWrite() { - if (writeInterest) { - writeInterest = false; - return true; - } else { - return false; - } } @Override --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org