This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push: new 4eab935 Check empty flag when calculating available bytes 4eab935 is described below commit 4eab93529f994b6df36c9c9898793973efde2083 Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Jul 8 23:53:03 2020 +0100 Check empty flag when calculating available bytes --- java/org/apache/coyote/ajp/AjpProcessor.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java/org/apache/coyote/ajp/AjpProcessor.java b/java/org/apache/coyote/ajp/AjpProcessor.java index 19752dd..c97f9b7 100644 --- a/java/org/apache/coyote/ajp/AjpProcessor.java +++ b/java/org/apache/coyote/ajp/AjpProcessor.java @@ -1312,7 +1312,11 @@ public class AjpProcessor extends AbstractProcessor { @Override public int available() { - return bodyBytes.getByteChunk().getLength(); + if (empty) { + return 0; + } else { + return bodyBytes.getByteChunk().getLength(); + } } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org