<div dir="ltr">I'm not, channel does it.<div><br></div><div>Problem is present on both. For example, home page has a content-length header but jquery.js use chunked.</div><div><br></div><div>Do I have to call .endExchange? or closing the output stream is enough?</div><div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 18, 2015 at 9:48 PM, Stuart Douglas <span dir="ltr"><<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Another question, are you setting a content length on the responses? If not the channel will automatically set one if the response fits inside a buffer, otherwise chunked encoding will be used.<br>
<br>
It might be helpful to know if this only happens on chunked, fixed length or both.<br>
<br>
Stuart<br>
<br>
Edgar Espina wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
latest: 1.2.0.Beta8<br>
<br>
On Sun, Jan 18, 2015 at 9:42 PM, Stuart Douglas <<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a><br></span><span class="">
<mailto:<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>>> wrote:<br>
<br>
Also what version of Undertow are you using?<br>
<br>
Stuart<br>
<br>
----- Original Message -----<br>
> From: "Edgar Espina" <<a href="mailto:espina.edgar@gmail.com" target="_blank">espina.edgar@gmail.com</a><br></span><span class="">
<mailto:<a href="mailto:espina.edgar@gmail.com" target="_blank">espina.edgar@gmail.com</a><u></u>>><br>
> To: "Stuart Douglas" <<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a><br></span><span class="">
<mailto:<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>>><br>
> Cc: <a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
<mailto:<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.<u></u>jboss.org</a>><br>
> Sent: Monday, 19 January, 2015 11:13:21 AM<br>
> Subject: Re: [undertow-dev] occasional 502 from Apache HTTP Proxy<br>
><br>
> found this in apache:<br>
><br>
> (104) Connection reset by peer: proxy: error reading status line from<br>
> remote server<br>
><br>
> but nothing in undertow.<br>
><br>
> got 502 on HTTP GET. Sometimes while calling the home page / or<br>
when page<br>
> loads OK, got 502 on page resources (js, css, images).<br>
><br>
> I call startBlocking and use the outputstream to write the<br>
response, when<br>
> everything has been written I call the "outputstream.close"<br>
method. Do I<br>
> need to call exchange.endExchange too?<br>
><br>
> Thanks<br>
><br>
> On Sun, Jan 18, 2015 at 8:52 PM, Stuart Douglas<br></span><span class="">
<<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a> <mailto:<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>>> wrote:<br>
><br>
> > Is there any info in the log? Or is there any specific type of<br>
request<br>
> > that causes this?<br>
> ><br>
> > Stuart<br>
> ><br>
> ><br>
> > ----- Original Message -----<br>
> > > From: "Edgar Espina" <<a href="mailto:espina.edgar@gmail.com" target="_blank">espina.edgar@gmail.com</a><br></span><div><div class="h5">
<mailto:<a href="mailto:espina.edgar@gmail.com" target="_blank">espina.edgar@gmail.com</a><u></u>>><br>
> > > To: <a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
<mailto:<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.<u></u>jboss.org</a>><br>
> > > Sent: Monday, 19 January, 2015 9:42:19 AM<br>
> > > Subject: [undertow-dev] occasional 502 from Apache HTTP Proxy<br>
> > ><br>
> > > Hi,<br>
> > ><br>
> > > I've an Undertow application behind apache reverse proxy,<br>
trying to load<br>
> > a<br>
> > > page displays error 502 proxy error.<br>
> > ><br>
> > > Still couldn't find why so I wonder if any of you find a<br>
similar problem<br>
> > with<br>
> > > Undertow and Apache.<br>
> > ><br>
> > > Please note this is our first app on top of Undertow,<br>
existing apps<br>
> > running<br>
> > > on Tomcat/Jetty are OK.<br>
> > ><br>
> > > Appreciate any help.<br>
> > ><br>
> > > Thanks<br>
> > ><br>
> > > --<br>
> > > edgar<br>
> > ><br>
> > > ______________________________<u></u>_________________<br>
> > > undertow-dev mailing list<br>
> > > <a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br></div></div>
<mailto:<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.<u></u>jboss.org</a>><span class=""><br>
> > > <a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/undertow-dev</a><br>
> ><br>
><br>
><br>
><br>
> --<br>
> edgar<br>
><br>
<br>
<br>
<br>
<br>
--<br>
edgar<br>
</span></blockquote>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">edgar</div>
</div>