<div dir="ltr"><div>In a dispatched non-blocking HttpRequest handler I&#39;m calling endExchange immediately after calling send on the response Sender. I am unsure if this will cause the sender to be interrupted or if the exchange will end only after the sender is done writing the data.<br><br></div><div>The code looks like this:<br><br>@Override<br>public void handleRequest(HttpServerExchange exchange) throws Exception<br>{<br>    if (exchange.isInIoThread()) {<br>        exchange.dispatch(this);<br>        return;<br>    }<br>    <br>    try {<br>        ... do things ...<br>        exchange.getResponseSender().send(data);<br>    }finally {<br>        exchange.endExchange();<br>    }<br>}<br><br></div><div><br></div></div>