This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new f52b9914d4 Add log if somehow the HttpParser is not present
f52b9914d4 is described below
commit f52b9914d4a71a44079eaefe0e779b1c631b8543
Author: remm <[email protected]>
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 85d6065a36..aaec6e440e 100644
--- a/java/org/apache/coyote/http11/Http11Processor.java
+++ b/java/org/apache/coyote/http11/Http11Processor.java
@@ -159,6 +159,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: [email protected]
For additional commands, e-mail: [email protected]