<div dir="ltr"><div>You need to use io.undertow.server.HttpServerExchange#setMaxEntitySize (just set it to zero). This has to be done before you start reading from the stream.<br><br></div><div>If you are using Servlet and need to get hold of the current exchange you can use <br><br>io.undertow.servlet.handlers.ServletRequestContext.requireCurrent().getExchange()<br></div><div><br></div>Stuart<br><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 25, 2016 at 11:22 PM, David Robison <span dir="ltr">&lt;<a href="mailto:david.robison@psgglobal.net" target="_blank">david.robison@psgglobal.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div>
<p class="MsoNormal">I have created a REST interface that receives a continuous stream of JPEGs from a video decoder for the purpose of writing then to a disk file.  The service is defined as:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#646464">@POST</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#646464">@Consumes</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2a00ff">&quot;*/*&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#646464">@Path</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2a00ff">&quot;/Receive/{videoId}&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7f0055">public</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> Response receiveVideo(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#646464">@PathParam</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2a00ff">&quot;videoId&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)
 String </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#6a3e3e">videoId</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">, InputStream
</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#6a3e3e">content</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Everything works fine up until it reaches the max-post-size and then the connection is terminated. Is there any way to disable the max-post-size when streaming video to a REST interface?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks, David<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:2.0pt;margin-left:0in">
<b><span style="font-family:&quot;Arial&quot;,sans-serif;color:#004b8d">David R Robison<u></u><u></u></span></b></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><i><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Senior Systems Engineer</span></i><i><span style="font-size:10.0pt;color:black"><u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black" lang="EN-GB">O. +1
</span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black"><a href="tel:512%20247%203700" value="+15122473700" target="_blank">512 247 3700</a></span><span style="font-size:10.0pt"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">M. <a href="tel:%2B1%20757%20286%200022" value="+17572860022" target="_blank">+1 757 286 0022</a><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black"><a href="mailto:david.robison@psgglobal.net" target="_blank"><span style="color:#0563c1">david.robison@psgglobal.net</span></a><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:6.0pt"><b><span style="font-size:10.0pt"><a href="http://www.psgglobal.net/" target="_blank"><span style="color:blue">www.psgglobal.net</span></a></span></b><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">
<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:6.0pt"><span style="font-size:10.0pt"><img style="width:1.3583in;min-height:.0125in" src="cid:image001.png@01D1E656.15FAD0F0" alt="cid:image003.png@01D19182.F24CA3E0" width="130" height="1" border="0"></span><span style="font-size:10.0pt;color:#004b8d"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:2.0pt;margin-left:0in">
<b><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#004b8d">Prometheus Security Group Global, Inc.<u></u><u></u></span></b></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">3019 Alvin Devane Boulevard</span><span style="font-size:10.0pt;color:black"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Building 4, Suite 450<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:2.0pt"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Austin, TX 78741<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:6.0pt"><span style="font-size:10.0pt"><img style="width:1.3583in;min-height:.0125in" src="cid:image001.png@01D1E656.15FAD0F0" alt="cid:image003.png@01D19182.F24CA3E0" width="130" height="1" border="0"></span><span style="font-size:10.0pt;color:#004b8d"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>_______________________________________________<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/mailman/listinfo/undertow-dev</a><br></blockquote></div><br></div>