<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Hi, Guilherme!</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">The HTTP status code 499, which means client closed the connection before Nginx even sent one byte.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">As long as Nginx sent some bytes, 499 will not arise, and Nginx just record the code generated previously, also, i bet your log_format  of your access_log is the default one provided by Nginx, it is helpless when we need to speculate whether</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">client closed the connection. Maybe you can modify your log_format such as appending “$http_content_length”, you can analysis this case by comparing the value of “$http_content_length” and “$body_bytes_sent”, of course the “Accept-Encoding” header can never be passed.</div> <div id="bloop_sign_1496496663557380864" class="bloop_sign"></div> <br><p class="airmail_on">On 3 June 2017 at 00:45:09, Guilherme (<a href="mailto:guilherme.e@gmail.com">guilherme.e@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>


<title></title>


<div dir="ltr">@itpp2012:
<div><br></div>
<div>I cant replicate the problem using curl from 2 different
locations.</div>
<div><br></div>
<div>Its not supposed to return 206 in range requests?</div>
<div><br></div>
<div>@zhang_chao:</div>
<div><br></div>
<div>I'm not sure about this, but its not supposed to return 499 in
this case?</div>
<div><br></div>
<div>Tks,</div>
<div><br></div>
<div>Guilherme</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Jun 2, 2017 at 3:45 AM, Zhang Chao
<span dir="ltr"><<a href="mailto:zchao1995@gmail.com" target="_blank">zchao1995@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div id="m_7061436911374848426bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
Hi!</div>
<div id="m_7061436911374848426bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<br></div>
<div id="m_7061436911374848426bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
Are you sure the client didn't close the connection when the body
is transferring?</div>
<div>
<div class="h5"><br>
<div id="m_7061436911374848426bloop_sign_1496385784305790976" class="m_7061436911374848426bloop_sign"></div>
<br>
<p class="m_7061436911374848426airmail_on">On 2 June 2017 at
10:00:36, Guilherme (<a href="mailto:guilherme.e@gmail.com" target="_blank">guilherme.e@gmail.com</a>) wrote:</p>
</div>
</div>
<blockquote type="cite" class="m_7061436911374848426clean_bq">
<div>
<div>
<div>
<div class="h5">
<div dir="ltr">
<div><span>I identified a strange behavior in my nginx/<a href="http://1.11.2." target="_blank">1.11.2.</a> Same cached objects
are returning different content length. In the logs below,
body_bytes_sent changes intermittently between 215 and 3782 bytes.
The correct length is 3782. (these objects are not being updated in
this interval)</span></div>
<div><span><br></span></div>
<div><span>xxxxxxxxxx - - [02/Jun/2017:01:29:06 +0000] "GET
/img/app/bt_google_play.png HTTP/2.0" 200 <b>215</b> "xxxxxxxxxx"
"Mozilla/5.0 (Linux; Android 6.0.1; SM-G600FY Build/MMB29M)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.83 Mobile
Safari/537.36" 42 215 10.571 "image/png" HIT</span></div>
<div><span>xxxxxxxxxx - - [02/Jun/2017:01:29:50 +0000] "GET
/img/app/bt_google_play.png HTTP/2.0" 200 <b>3782</b> "xxxxxxxxxx"
"Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X)
AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.0 Mobile/14F89
Safari/602.1" 32 3791 0.344 "image/png" HIT </span></div>
<div><span><br></span></div>
<div><span><b>* request_time is always high for the shorter
requests</b></span></div>
<div><span><br></span></div>
<div><span>I'm ignoring Vary header in proxy_ignore_headers
too.</span></div>
<div><span><br></span></div>
<div><span>Any idea about this?</span></div>
<div><span><br></span></div>
<div><span>Tks,</span></div>
<div><span><br></span></div>
<div><span>Guilherme</span></div>
</div>
</div>
</div>
<span><span class="">______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a></span></span></div>
</div>
</blockquote>
</div>
</blockquote>
</div>
<br></div>


</div></div></span></blockquote></body></html>