This is an automated email from the ASF dual-hosted git repository.
markt 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 fdf14b0 Add some more debug logging
fdf14b0 is described below
commit fdf14b02fb53fd4fd3731b10bbaef57f4f09b439
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Nov 5 09:41:06 2020 +0000
Add some more debug logging
---
java/org/apache/coyote/AbstractProcessor.java | 3 +++
java/org/apache/coyote/LocalStrings.properties | 1 +
webapps/docs/changelog.xml | 4 ++++
3 files changed, 8 insertions(+)
diff --git a/java/org/apache/coyote/AbstractProcessor.java
b/java/org/apache/coyote/AbstractProcessor.java
index 7255040..d6e3877 100644
--- a/java/org/apache/coyote/AbstractProcessor.java
+++ b/java/org/apache/coyote/AbstractProcessor.java
@@ -99,6 +99,9 @@ public abstract class AbstractProcessor extends
AbstractProcessorLight implement
* @param t The error which occurred
*/
protected void setErrorState(ErrorState errorState, Throwable t) {
+ if (getLog().isDebugEnabled()) {
+ getLog().debug(sm.getString("abstractProcessor.setErrorState",
errorState), t);
+ }
// Use the return value to avoid processing more than one async error
// in a single async cycle.
boolean setError = response.setError();
diff --git a/java/org/apache/coyote/LocalStrings.properties
b/java/org/apache/coyote/LocalStrings.properties
index 83960cb..3009a36 100644
--- a/java/org/apache/coyote/LocalStrings.properties
+++ b/java/org/apache/coyote/LocalStrings.properties
@@ -31,6 +31,7 @@ abstractProcessor.hostInvalid=The host [{0}] is not valid
abstractProcessor.httpupgrade.notsupported=HTTP upgrade is not supported by
this protocol
abstractProcessor.noExecute=Unable to transfer processing to a container
thread because this Processor is not currently associated with a SocketWrapper
abstractProcessor.pushrequest.notsupported=Server push requests are not
supported by this protocol
+abstractProcessor.setErrorState=Error state [{0}] reported while processing
request
abstractProcessor.socket.ssl=Exception getting SSL attributes
abstractProtocol.mbeanDeregistrationFailed=Failed to deregister MBean named
[{0}] from MBean server [{1}]
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 7b963a8..69a36d7 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -120,6 +120,10 @@
Avoid most of the thread pool use during NIO2 socket accept. Patch
submitted by Anil Gursel. (remm)
</fix>
+ <add>
+ Add additional debug logging for I/O issues when communicating with the
+ user agent. (markt)
+ </add>
</changelog>
</subsection>
<subsection name="Jasper">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]