<div dir="ltr">In our project we use Undertow in WildFly application server.<br>Also we set Read Time Out limits for Undertow. <br>As we can understand, Read Time Out managed by ReadTimeoutStreamSourceConduit class.<br>At Read Time Out moment will be called IoUtils.safeClose and resources will be closed.<br>But we want to return message with TimeOut code ( StatusCodes.REQUEST_TIME_OUT ).<br>How can we properly close Exchange and return code to client as response?<br><br>I tried to handle in exchange.getConnection().<wbr>addCloseListener , but i cant find a way to return code.<br>Also, i found Test /undertow-core/src/test/java/<wbr>io/undertow/server/<wbr>ReadTimeoutTestCase.java, but it doesnt work.</div>