This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new c869912759 Clean-up - no functional change
c869912759 is described below
commit c86991275948d934a4c2ed09c57f244cb20813d7
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Sep 29 16:38:28 2026 +0100
Clean-up - no functional change
---
java/org/apache/coyote/http11/Http11Processor.java | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/java/org/apache/coyote/http11/Http11Processor.java
b/java/org/apache/coyote/http11/Http11Processor.java
index d583fafe6c..4fe5cab8cd 100644
--- a/java/org/apache/coyote/http11/Http11Processor.java
+++ b/java/org/apache/coyote/http11/Http11Processor.java
@@ -155,7 +155,7 @@ public class Http11Processor extends AbstractProcessor {
* Creates a new HTTP/1.1 processor.
*
* @param protocol the protocol handler
- * @param adapter the adapter to pass requests to
+ * @param adapter the adapter to pass requests to
*/
public Http11Processor(AbstractHttp11Protocol<?> protocol, Adapter
adapter) {
super(adapter);
@@ -342,7 +342,10 @@ public class Http11Processor extends AbstractProcessor {
Request upgradeRequest = null;
try {
upgradeRequest = cloneRequest(request);
- // Make sure any remaining body is swallowed
before we start processing the upgraded protocol
+ /*
+ * Make sure any remaining body is swallowed
before we start processing the upgraded
+ * protocol.
+ */
inputBuffer.endRequest();
} catch (ByteChunk.BufferOverflowException ioe) {
response.setStatus(HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE);
@@ -1134,13 +1137,12 @@ public class Http11Processor extends AbstractProcessor {
protected boolean flushBufferedWrite() throws IOException {
if (outputBuffer.hasDataToWrite()) {
if (outputBuffer.flushBuffer(false)) {
- // The buffer wasn't fully flushed so re-register the
- // socket for write. Note this does not go via the
- // Response since the write registration state at
- // that level should remain unchanged. Once the buffer
- // has been emptied then the code below will call
- // Adaptor.asyncDispatch() which will enable the
- // Response to respond to this event.
+ /*
+ * The buffer wasn't fully flushed so re-register the socket
for write. Note this does not go via the
+ * Response since the write registration state at that level
should remain unchanged. Once the buffer
+ * has been emptied then the code below will call
Adaptor.asyncDispatch() which will enable the Response
+ * to respond to this event.
+ */
outputBuffer.registerWriteInterest();
return true;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]