<div dir="ltr">Correct me if I am wrong Stuart but if the request was already dispatched before calling the <span style="font-size:12.8px">getRequestReceiver(), then the callback will be handled by a worker thread.</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Cheers,</span></div><div><span style="font-size:12.8px">Antoine</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 30, 2017 at 11:48 PM, Stuart Douglas <span dir="ltr">&lt;<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">No, the callback is invoked by the IO thread, so you would need to<br>
dispatch to a worker thread.<br>
<br>
Stuart<br>
<div><div class="h5"><br>
On Fri, Mar 31, 2017 at 6:58 AM, Michael Grove &lt;<a href="mailto:mike@stardog.com">mike@stardog.com</a>&gt; wrote:<br>
&gt; If I have some code ala<br>
&gt;<br>
&gt; theRequest.getRequestReceiver(<wbr>).receiveFullString((<wbr>theExchange, str) -&gt; {<br>
&gt;   ...<br>
&gt; });<br>
&gt;<br>
&gt; Is it ok to perform a time consuming task w/ the body of the request in the<br>
&gt; callback, or is it better to move off the io thread and use<br>
&gt; `HttpServerExchange.<wbr>getInputStream`?<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Mike<br>
&gt;<br>
</div></div>&gt; ______________________________<wbr>_________________<br>
&gt; undertow-dev mailing list<br>
&gt; <a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/undertow-dev</a><br>
______________________________<wbr>_________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/undertow-dev</a><br>
</blockquote></div><br></div>