<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Hi Undertow Dev,</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">we built a custom integration component based on Wildfly 11 with Undertow 1.4.18. The application contains a couple of custom and built in handlers.</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">We found the following:</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">There is a RequestLimit handler right at the beginning and finally the proxy handler. When the backend getting to be slow and the load is relatively high the RequestLimit handler does its job queues the request then throws the request above the queue. When the proxy times out it starts to consume the queue, in some cases the exception below occurs and we found that in this case the counter in the RequestLimit handler is not reduced and the it can stuck the way to the backend.</div><div class="gmail_default" style="font-family:courier new,monospace">Are there any possibility to handle the exception in a custom handler?</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">Thank you in advance, Zsolt</div><div class="gmail_default" style="font-family:courier new,monospace"> </div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace"><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(68,84,106)">2018-11-28 12:02:19,518 ERROR [io.undertow.proxy] (default I/O-2)
UT005028: Proxy request to /lwi/optinus/getentityanswersservice failed:
java.nio.channels.ClosedChannelException</span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(68,84,106)">        at
io.undertow.client.http.HttpClientConnection$5.handleEvent(HttpClientConnection.java:194)</span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(68,84,106)">        at
io.undertow.client.http.HttpClientConnection$5.handleEvent(HttpClientConnection.java:173)</span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(68,84,106)">        at
org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)</span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(68,84,106)">        at
org.xnio.StreamConnection.invokeCloseListener(StreamConnection.java:80)</span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(68,84,106)">        at
org.xnio.Connection.close(Connection.java:142)</span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(68,84,106)">        at org.xnio.IoUtils.safeClose(IoUtils.java:152)</span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(68,84,106)">        at
io.undertow.util.ConnectionUtils$3.run(ConnectionUtils.java:102)</span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(68,84,106)">        at
org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612)</span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(68,84,106)">        at
org.xnio.nio.WorkerThread.run(WorkerThread.java:479)</span></p></div></div>