<div dir="ltr">found this in apache: 







<p class=""><span class="">(104) Connection reset by peer: proxy: error reading status line from remote server</span></p><p class=""><span class="">but nothing in undertow.</span></p><p class=""><span class="">got 502 on HTTP GET. Sometimes while calling the home page / or when page loads OK, got 502 on page resources (js, css, images).</span></p><p class="">I call startBlocking and use the outputstream to write the response, when everything has been written I call the &quot;outputstream.close&quot; method. Do I need to call exchange.endExchange too?</p><p class="">Thanks</p>







</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 18, 2015 at 8:52 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">Is there any info in the log? Or is there any specific type of request that causes this?<br>
<br>
Stuart<br>
<div><div class="h5"><br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Edgar Espina&quot; &lt;<a href="mailto:espina.edgar@gmail.com">espina.edgar@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
&gt; Sent: Monday, 19 January, 2015 9:42:19 AM<br>
&gt; Subject: [undertow-dev] occasional 502 from Apache HTTP Proxy<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;ve an Undertow application behind apache reverse proxy, trying to load a<br>
&gt; page displays error 502 proxy error.<br>
&gt;<br>
&gt; Still couldn&#39;t find why so I wonder if any of you find a similar problem with<br>
&gt; Undertow and Apache.<br>
&gt;<br>
&gt; Please note this is our first app on top of Undertow, existing apps running<br>
&gt; on Tomcat/Jetty are OK.<br>
&gt;<br>
&gt; Appreciate any help.<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; --<br>
&gt; edgar<br>
&gt;<br>
</div></div>&gt; _______________________________________________<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" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">edgar</div>
</div>