Provide a more helpful TimeoutException message

- One cannot tell what endpoint is at fault in a non-trivial
configuration, for example, using an AsyncMiddleManServlet, is it the
origin or the client?
- The TimeoutException message now contains the endpoint causing the
timeout
This commit is contained in:
Gary Gregory 2024-11-14 07:50:01 -05:00
parent 1ee0ad6593
commit 51969fd196
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ public abstract class IdleTimeout
{
if (idleLeft <= 0)
{
TimeoutException timeout = new TimeoutException("Idle timeout expired: " + idleElapsed + "/" + idleTimeout + " ms");
TimeoutException timeout = new TimeoutException("Idle timeout expired: " + idleElapsed + "/" + idleTimeout + " ms in " + this);
if (LOG.isDebugEnabled())
LOG.debug("{} idle timeout expired", this, timeout);
try