This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 8a43ce4a9a Add log if somehow the HttpParser is not present
8a43ce4a9a is described below

commit 8a43ce4a9a89dc3c529df07c5b7b7bdda1c3c45f
Author: remm <r...@apache.org>
AuthorDate: Sat Oct 26 00:30:30 2024 +0200

    Add log if somehow the HttpParser is not present
---
 java/org/apache/coyote/http11/Http11Processor.java    | 1 +
 java/org/apache/coyote/http11/LocalStrings.properties | 1 +
 2 files changed, 2 insertions(+)

diff --git a/java/org/apache/coyote/http11/Http11Processor.java 
b/java/org/apache/coyote/http11/Http11Processor.java
index aee4a92c04..e33ff1fa6e 100644
--- a/java/org/apache/coyote/http11/Http11Processor.java
+++ b/java/org/apache/coyote/http11/Http11Processor.java
@@ -158,6 +158,7 @@ public class Http11Processor extends AbstractProcessor {
 
         HttpParser httpParser = protocol.getHttpParser();
         if (httpParser == null) {
+            log.info(sm.getString("http11processor.noParser"));
             httpParser = new HttpParser(protocol.getRelaxedPathChars(), 
protocol.getRelaxedQueryChars());
         }
         this.httpParser = httpParser;
diff --git a/java/org/apache/coyote/http11/LocalStrings.properties 
b/java/org/apache/coyote/http11/LocalStrings.properties
index b4313a5509..ccceb70765 100644
--- a/java/org/apache/coyote/http11/LocalStrings.properties
+++ b/java/org/apache/coyote/http11/LocalStrings.properties
@@ -25,6 +25,7 @@ abstractHttp11Protocol.upgradeJmxRegistrationFail=Failed to 
register upgrade pro
 http11processor.fallToDebug=\n\
 \ Note: further occurrences of HTTP request parsing errors will be logged at 
DEBUG level.
 http11processor.header.parse=Error parsing HTTP request header
+http11processor.noParser=No HttpParser was found on the HTTP protocol handler, 
it should be created on initialization
 http11processor.request.alreadyChunked=Error preparing request, transfer 
encoding lists chunked before [{0}]
 http11processor.request.finish=Error finishing request
 http11processor.request.inconsistentHosts=The host specified in the request 
line is not consistent with the host header


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to