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

remm 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 1c9f52abcd Add log if somehow the HttpParser is not present
1c9f52abcd is described below

commit 1c9f52abcd04e27f17661ef91b169d5e84b0ab45
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 d34e1772c3..53b38d8c57 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 bb45718ebf..39c7b89c7d 100644
--- a/java/org/apache/coyote/http11/LocalStrings.properties
+++ b/java/org/apache/coyote/http11/LocalStrings.properties
@@ -22,6 +22,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