<p dir="ltr">Are you able to test with an alternate brand of browser to isolate if this is a client or server issue?</p>
<p dir="ltr">Does turning off http/2 fix the issue? It's possible but unlikely that network conditions have changed at the same time as your move to http/2.</p>
<p dir="ltr">Phil</p>
<div class="gmail_quot<blockquote class=" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
After I upgrade nginx to 1.9.12 and enabled http2 for my website. I found a<br>
wired issue related with download pictures.<br>
<br>
My website is a photo-sharing websites. So on each page there are about<br>
100-200 pictures, the size of each of them may from 10K to 500K.<br>
<br>
In the past (http and https with spdy), I'm using below settings:<br>
<br>
client_body_timeout 10;<br>
client_header_timeout 10;<br>
keepalive_timeout 30;<br>
send_timeout 30;<br>
<br>
keepalive_requests 200;<br>
keepalive_disable none;<br>
reset_timedout_connection on;<br>
<br>
And everything is good. For users from different countries, they can view<br>
the pictures without any error.<br>
<br>
But after I upgrade to http2, with the same settings, it seems for users who<br>
have a good bandwidth, everything is fine. But for users who are from<br>
different countries, some of them experience issue that on the webpage some<br>
pictures can't display properly. And if they refresh the webpage for 1 times<br>
or more, then the whole webpage can display as normal, all pictures are<br>
downloaded and display.<br>
<br>
<br>
I tried to change send_timeout value from 30s to 300s, then it seems it can<br>
fix the problem. I used firefox to monitor the webpage load speed, I can see<br>
for the pictures of the webpage, the waiting time is pretty long, sometimes<br>
it's more than 60s - 120s, and then firefox start to receiving the<br>
pictures.<br>
<br>
My understanding is that after enable http2, nginx are using "Multiplexing<br>
and concurrency" to send out pictures, which mean for the webpage with 200<br>
pictures, the web browser is ready to receive all pictures when the<br>
connections is established. But for clients who has limited network<br>
bandwidth to the server, they can only download the pictures slowly. And<br>
then some of the pictures will be timeout and can't display.<br>
<br>
So, is there any better solution to fix this kind of issue?<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,265430,265430#msg-265430" rel="noreferrer" target="_blank">https://forum.nginx.org/read.php?2,265430,265430#msg-265430</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div>